/* Shared auth page styles (login, register, reset-password) */

body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 60%, #f8fafc 100%);
    padding: 24px;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 44px 36px 36px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.02);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    height: 56px;
    width: auto;
    margin-bottom: 20px;
}

.auth-title {
    font-family: 'Nunito', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

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

/* Form elements */
.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.auth-form .form-input {
    width: 100%;
    padding: 12px 16px;
    height: 48px;
    font-size: 15px;
    font-family: inherit;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-form .form-input:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

.auth-form .form-input::placeholder {
    color: #cbd5e1;
}

.auth-form .form-input-wrapper {
    position: relative;
}

.auth-form .form-input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.auth-form .form-input-wrapper .form-input {
    padding-left: 44px;
}

/* Primary button */
.auth-btn {
    width: 100%;
    padding: 14px;
    height: 50px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #ffffff;
    background: #0d9488;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.auth-btn:hover {
    background: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13,148,136,0.25);
}

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

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

.auth-btn.loading {
    position: relative;
    color: transparent;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

/* Secondary button (demo) */
.auth-btn-secondary {
    width: 100%;
    padding: 12px;
    height: 48px;
    background: #f0fdfa;
    color: #0d9488;
    border: 1.5px solid #ccfbf1;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, border-color 0.2s;
}

.auth-btn-secondary:hover {
    background: #ccfbf1;
    border-color: #99f6e4;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f1f5f9;
}

.auth-divider span {
    padding: 0 14px;
}

/* Footer links */
.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.auth-footer a {
    color: #0d9488;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Forgot password */
.auth-forgot {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 18px;
}

.auth-forgot a {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-forgot a:hover {
    color: #0d9488;
}

/* Messages */
.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 18px;
    display: none;
    line-height: 1.5;
}

.auth-error.show { display: block; }

.auth-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 18px;
    display: none;
    line-height: 1.5;
}

.auth-success.show { display: block; }

/* Password requirements */
.auth-pw-hint {
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
}

.auth-pw-hint ul {
    margin: 0;
    padding-left: 16px;
}

.auth-pw-hint li { margin: 2px 0; }
.auth-pw-hint li.valid { color: #16a34a; }

/* Back to home link */
.auth-back {
    text-align: center;
    margin-top: 20px;
}

.auth-back a {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: none;
}

.auth-back a:hover {
    color: #0d9488;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px 28px;
        border-radius: 16px;
    }
}
