/* ============================================
   AUTH PAGES — auth.css
   URBANTIQ · iOS-style minimal UI
   ============================================ */

:root {
    --auth-bg: #fff;
    --auth-text: #1d1d1f;
    --auth-muted: #86868b;
    --auth-input-bg: #f5f5f7;
    --auth-border: #d2d2d7;
    --auth-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

body.auth-body {
    background-color: var(--auth-bg);
    color: var(--auth-text);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* ══ SPLIT LAYOUT ══════════════════════════ */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Left Image Section */
.auth-image-side {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: block;
}

@media (max-width: 991px) {
    .auth-image-side {
        display: none;
    }
}

.auth-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    filter: grayscale(100%);
}

.auth-image-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
}

.auth-brand-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 10;
    color: #fff;
}

.auth-brand-overlay h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 8px;
}

.auth-brand-overlay p {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    max-width: 320px;
    line-height: 1.5;
}

/* Right Form Section */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.6s ease-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══ TYPOGRAPHY ════════════════════════════ */
.auth-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--auth-text);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--auth-muted);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* ══ FORM ELEMENTS ═════════════════════════ */
.auth-form .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 8px;
    padding-left: 2px;
}

.auth-form .form-control {
    background-color: var(--auth-input-bg);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--auth-text);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form .form-control:focus {
    background-color: #fff;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    outline: none;
}

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

/* Checkbox */
.form-check-input:checked {
    background-color: #000;
    border-color: #000;
}

.form-check-label {
    font-size: 0.85rem;
    color: var(--auth-muted);
    user-select: none;
}

/* Link Style */
.auth-link {
    color: #007aff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #005bb7;
    text-decoration: underline;
}

/* Buttons */
.btn-auth-primary {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    margin-top: 1rem;
    transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-auth-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-auth-primary:active {
    transform: scale(0.98);
}

.btn-auth-outline {
    background-color: transparent;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
    border-radius: 14px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    transition: background 0.2s;
}

.btn-auth-outline:hover {
    background-color: #f5f5f7;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: #aeaeb2;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #f2f2f2;
}

.auth-divider:not(:empty)::before {
    margin-right: 1.5rem;
}

.auth-divider:not(:empty)::after {
    margin-left: 1.5rem;
}

/* Footnote */
.auth-footnote {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--auth-muted);
}

.auth-footnote a {
    color: #000;
    font-weight: 700;
    text-decoration: none;
}

/* ══ OTP INPUTS ════════════════════════════ */
.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2rem;
}

.otp-field {
    width: 100%;
    height: 64px;
    border-radius: 14px;
    border: 1px solid var(--auth-border);
    background-color: var(--auth-input-bg);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-text);
    transition: all 0.2s;
}

.otp-field:focus {
    background-color: #fff;
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    outline: none;
}

/* Remove Arrows from Number Input */
.otp-field::-webkit-inner-spin-button,
.otp-field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ══ PASSWORD VALIDATION UI ════════════════ */
.password-validation-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
    display: none;
    /* Hidden until focus */
}

.password-validation-container.visible {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.requirements-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 0.8rem;
    display: block;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.requirements-list li {
    font-size: 0.78rem;
    color: #8e8e93;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.requirements-list li i {
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #e5e5ea;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.requirements-list li.valid {
    color: #28a745;
}

.requirements-list li.valid i {
    background-color: #28a745;
}

/* Strength Indicator */
.strength-meter {
    margin-top: 10px;
    display: none;
}

.strength-meter.visible {
    display: block;
}

.strength-bar-bg {
    height: 4px;
    background-color: #e5e5ea;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.strength-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 5px;
    display: block;
    text-align: right;
}

/* Strength Colors */
.strength-weak {
    background-color: #ff3b30;
}

.strength-medium {
    background-color: #ff9500;
}

.strength-strong {
    background-color: #34c759;
}

/* Inline Feedback */
.validation-hint {
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 6px;
    display: none;
}

.validation-hint.visible {
    display: block;
}

.validation-hint.error {
    color: #ff3b30;
}

.validation-hint.success {
    color: #34c759;
}

/* ══ PASSWORD EYE TOGGLE ════════════════════ */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 45px;
}

.eye-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aeaeb2;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.eye-toggle:hover {
    color: var(--auth-text);
}