/* ===============================
   SIGN-IN FORM STYLES
   Add this to your styles.css or include as separate stylesheet
================================ */

/* Login Type Tabs */
.login-tabs {
    display: flex;
    gap: 48px;
    padding-bottom: 12px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -15px;
}

.tab-btn.active {
    color: #7980FF;
    border-bottom-color: #7980FF;
}

.tab-btn:hover {
    color: #fff;
    background-color: #7980FFC9;
}

.login-tab-content {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remember Me Checkbox */
.remember-me-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.remember-me-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #7980FF;
}

.remember-me-label span {
    color: #6b7280;
}

/* Error States */
.sign-in-form fieldset.error {
    position: relative;
}

.sign-in-form fieldset.error input {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1);
}

.sign-in-form fieldset.error .error-message {
    display: block;
    font-size: 0.875rem;
    margin-top: 4px;
    color: #dc3545;
    font-weight: 500;
}

.sign-in-form .error-message {
    display: none;
}

.sign-in-form button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Input focus styling */
.sign-in-form input:focus {
    border-color: #7980FF !important;
    box-shadow: 0 0 0 0.2rem rgba(121, 128, 255, 0.25);
}

/* Password toggle button styling - FIXED */
.show-pass {
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.show-pass i {
    transition: all 0.3s ease;
    opacity: 0.6;
    font-size: 1.2rem;
    line-height: 1;
}

.show-pass i:hover {
    opacity: 1;
}

.show-pass .icon-view {
    display: inline !important;
}

.show-pass .icon-hide {
    display: none !important;
}

.show-pass.show .icon-view {
    display: none !important;
}

.show-pass.show .icon-hide {
    display: inline !important;
}
