/* Auth Pages CSS - Login, Register, Forgot Password, Reset Password */

/* Container */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #ffffff;
}

.auth-wrapper {
    width: 100%;
    max-width: 500px;
}

.auth-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 50px;
    margin: 0 auto 1.5rem;
    display: block;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-header p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
    text-align: center;
}

/* Form Elements */
.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.auth-form-label .required {
    color: #dc2626;
}

.auth-form-label i {
    margin-right: 0.5rem;
}

.auth-form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #1a1a1a;
    box-sizing: border-box;
}

.auth-form-control:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

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

.auth-form-control:read-only {
    background: #f3f4f6;
    cursor: not-allowed;
}

/* Password Field */
.auth-password-wrapper {
    position: relative;
}

.auth-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

.auth-password-toggle:hover {
    color: #FFD700;
}

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF4500 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

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

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-outline {
    width: 100%;
    padding: 0.875rem;
    background: white;
    color: #1a1a1a;
    border: 2px solid #FFD700;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-sizing: border-box;
}

.auth-btn-outline:hover {
    background: #fffbeb;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

/* Form Footer */
.auth-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.auth-remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.auth-remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #FFD700;
}

.auth-remember-me label {
    cursor: pointer;
    color: #6b7280;
    user-select: none;
}

.auth-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-link:hover {
    color: #FFA500;
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider-text {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Back Link */
.auth-back-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.auth-back-link a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-back-link a:hover {
    color: #FFA500;
}

/* Messages */
.auth-error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.auth-error-message i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.auth-success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.auth-success-message i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Password Requirements */
.auth-password-requirements {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.auth-requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.auth-requirement:last-child {
    margin-bottom: 0;
}

.auth-requirement i {
    width: 16px;
    text-align: center;
    color: #d1d5db;
}

.auth-requirement.met i {
    color: #10b981;
}

/* Password Strength */
.auth-password-strength {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
}

.auth-password-strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 0.25rem;
    overflow: hidden;
}

.auth-password-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
    border-radius: 2px;
}

.strength-weak .auth-password-strength-fill {
    background: #ef4444;
    width: 33%;
}

.strength-fair .auth-password-strength-fill {
    background: #f59e0b;
    width: 66%;
}

.strength-strong .auth-password-strength-fill {
    background: #10b981;
    width: 100%;
}

/* Verified Badge */
.auth-verified-badge {
    color: #10b981;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* Checkbox Group */
.auth-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.auth-checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #FFD700;
}

.auth-checkbox-group label {
    font-size: 0.9rem;
    color: #6b7280;
    cursor: pointer;
}

.auth-checkbox-group a {
    color: #FFD700;
    font-weight: 600;
    text-decoration: none;
}

.auth-checkbox-group a:hover {
    color: #FFA500;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-container {
        min-height: calc(100vh - 150px);
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1rem 0.5rem;
    }

    .auth-card {
        padding: 1.25rem;
    }

    .auth-header h1 {
        font-size: 1.35rem;
    }

    .auth-form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
