/* ==================== AUTH STYLES ==================== */

/* Background & Layout */
.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    animation: slideUp 0.6s ease;
}

/* Auth Card */
.auth-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #FF006E, #FF4D94);
}

/* Logo Section */
.auth-logo {
    text-align: center;
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.auth-logo-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FF006E 0%, #FF4D94 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(255, 0, 110, 0.15);
    animation: pulse 2s infinite;
}

.auth-logo-text {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FF006E 0%, #FF4D94 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo-subtext {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin-top: -10px;
    letter-spacing: 0.5px;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
}

/* Form Styles */
.auth-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1f2937;
    font-family: inherit;
    font-weight: 500;
}

.form-control:focus {
    outline: none;
    border-color: #FF006E;
    box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.1);
}

.form-control:hover:not(:focus) {
    border-color: #9ca3af;
}

.form-control::placeholder {
    color: #9ca3af;
    opacity: 0.7;
}

/* Password Input Group */
.password-input-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #FF006E;
}

/* Remember Me & Forgot Password */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    position: relative;
}

.remember-me input[type="checkbox"]:checked {
    background: #FF006E;
    border-color: #FF006E;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.remember-me label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    font-weight: 500;
}

.forgot-password {
    font-size: 14px;
    color: #FF006E;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #CC0058;
    text-decoration: underline;
}

/* Submit Button */
.auth-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF006E 0%, #FF4D94 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.auth-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-submit:hover::before {
    left: 100%;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.2);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit i {
    font-size: 18px;
}

/* Loading State */
.auth-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.auth-submit.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.auth-footer-text {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FF006E;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-to-home:hover {
    color: #CC0058;
    gap: 12px;
}

/* Error States */
.form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #ef4444;
    font-weight: 500;
    animation: shake 0.5s ease;
}

/* Toast Notifications */
.auth-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    min-width: 320px;
    max-width: 400px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 20px;
    border-left: 6px solid #FF006E;
    animation: toastIn 0.4s ease;
    z-index: 9999;
    border: 1px solid #e5e7eb;
}

.auth-toast.error {
    border-left-color: #ef4444;
}

.auth-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.auth-toast-icon {
    font-size: 24px;
    color: #FF006E;
    flex-shrink: 0;
}

.auth-toast.error .auth-toast-icon {
    color: #ef4444;
}

.auth-toast-text {
    flex-grow: 1;
}

.auth-toast-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: #1f2937;
}

.auth-toast-text p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.auth-toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.auth-toast-close:hover {
    color: #1f2937;
}

/* Language Switcher (if needed) */
.auth-language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.auth-language-switcher select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-language-switcher select:focus {
    outline: none;
    border-color: #FF006E;
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.1);
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-container {
        max-width: 100%;
    }
    
    .auth-card {
        padding: 30px 25px;
        border-radius: 12px;
    }
    
    .auth-logo-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        border-radius: 12px;
    }
    
    .auth-logo-text {
        font-size: 28px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .forgot-password {
        align-self: flex-start;
    }
    
    .auth-language-switcher {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 20px;
        display: flex;
        justify-content: flex-end;
    }
}

@media (max-width: 400px) {
    .auth-card {
        padding: 25px 20px;
        border-radius: 10px;
    }
    
    .auth-logo {
        margin-bottom: 25px;
    }
    
    .auth-logo-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        border-radius: 10px;
    }
    
    .auth-logo-text {
        font-size: 24px;
    }
}

/* Animations */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(255, 0, 110, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 24px rgba(255, 0, 110, 0.25);
    }
}

@keyframes toastIn {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}