/* Auth Pages Stylesheet */

/* Layout */
.auth-page-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #0a0a0c;
}

.auth-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.auth-card {
    background: #12121a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

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

.auth-logo {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.auth-logo .logo-neon {
    color: #ff2e93;
}

.auth-title {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.auth-subtitle {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #d1d5db;
}

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

.auth-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 13px 16px;
    color: #fff;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    box-sizing: border-box;
    outline: none;
}

.auth-input:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 0 3px rgba(0,240,255,0.15);
}

.auth-input.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

.auth-input::placeholder {
    color: #6b7280;
}

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

.password-input-wrap .auth-input {
    padding-right: 48px;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 0.2s;
}

.password-toggle-btn:hover {
    color: #fff;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 8px;
}

.strength-bar-track {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s;
    width: 0;
}

.strength-bar-fill.strength-weak {
    background: #ef4444;
    width: 25%;
}

.strength-bar-fill.strength-fair {
    background: #f59e0b;
    width: 50%;
}

.strength-bar-fill.strength-good {
    background: #10b981;
    width: 75%;
}

.strength-bar-fill.strength-strong {
    background: #00f0ff;
    width: 100%;
}

.strength-text {
    font-size: 11px;
    margin-top: 4px;
    color: #9ca3af;
}

.strength-text.strength-weak {
    color: #ef4444;
}

.strength-text.strength-fair {
    color: #f59e0b;
}

.strength-text.strength-good {
    color: #10b981;
}

.strength-text.strength-strong {
    color: #00f0ff;
}

/* Form Row (side-by-side) */
.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media max-width: 500px {
    .auth-form-row {
        grid-template-columns: 1fr;
    }
}

/* Checkbox */
.auth-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-checkbox-group input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: #ff2e93;
    cursor: pointer;
}

.auth-checkbox-group label {
    font-size: 13px;
    color: #b0b4be;
    cursor: pointer;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff2e93, #a855f7);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,46,147,0.4);
}

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

.auth-submit-btn .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Links & Separator */
.auth-links {
    text-align: center;
    margin-top: 24px;
}

.auth-links a {
    color: #00f0ff;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #fff;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #6b7280;
    font-size: 12px;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* Flash Messages */
.flash-message {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    animation: fadeInDown 0.3s ease;
}

.flash-success {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.3);
    color: #10b981;
}

.flash-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}

.flash-warning {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.3);
    color: #f59e0b;
}

.flash-info {
    background: rgba(0,240,255,0.1);
    border: 1px solid rgba(0,240,255,0.3);
    color: #00f0ff;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Field Error */
.field-error {
    color: #ef4444;
    font-size: 11px;
    margin-top: 2px;
}

/* Verify Email / Success Page */
.auth-success-icon {
    text-align: center;
    font-size: 64px;
    margin-bottom: 20px;
}

.auth-success-icon.success {
    color: #10b981;
}

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

.auth-success-icon.pending {
    color: #f59e0b;
}

/* Responsive */
@media (max-width: 520px) {
    .auth-card {
        padding: 36px 24px;
    }
    .auth-title {
        font-size: 24px;
    }
}
