/* =============================================
   AUTH PAGES — uv-auth-*
   Split-screen: Left brand panel | Right form
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===== RESET & BASE ===== */
.uv-auth-page *,
.uv-auth-page *::before,
.uv-auth-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== PAGE LAYOUT ===== */
.uv-auth-page {
    display: flex;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: #f1f5f9;
}

/* ===== LEFT PANEL — BRAND ===== */
.uv-auth-left {
    flex: 0 0 45%;
    max-width: 45%;
    background: linear-gradient(145deg, #0035a8 0%, #0052cc 45%, #0070e0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 60px 40px;
}

/* Decorative circles */
.uv-auth-left::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 80px solid rgba(255, 255, 255, 0.06);
    top: -100px;
    left: -100px;
    pointer-events: none;
}

.uv-auth-left::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, 0.05);
    bottom: -80px;
    right: -80px;
    pointer-events: none;
}

.uv-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.uv-auth-logo {
    width: 180px;
    max-width: 100%;
    /* white-ish treatment for dark background */
    filter: brightness(0) invert(1);
}

.uv-auth-brand-tagline {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.uv-auth-left-footer {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1;
}

.uv-auth-left-footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* ===== RIGHT PANEL — FORM ===== */
.uv-auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: #f8fafc;
    overflow-y: auto;
}

.uv-auth-box {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== HEADER ===== */
.uv-auth-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.uv-auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.uv-auth-subtitle {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

/* ===== ALERTS ===== */
.uv-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
}

.uv-auth-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.uv-auth-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.uv-auth-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ===== FORM FIELD ===== */
.uv-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.uv-auth-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* Input wrap: icon + input + optional eye button */
.uv-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.uv-auth-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
}

.uv-auth-input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 44px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.uv-auth-input::placeholder {
    color: #b0b9c8;
    font-size: 13.5px;
}

.uv-auth-input:focus {
    border-color: #0035a8;
    box-shadow: 0 0 0 3px rgba(0, 53, 168, 0.10);
}

/* Readonly state */
.uv-auth-input[readonly] {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

/* Eye toggle button */
.uv-auth-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.uv-auth-eye:hover {
    color: #0035a8;
}

.uv-auth-eye svg {
    opacity: 0.4;
}

/* ===== INLINE ROW: Checkbox + Forgot ===== */
.uv-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

/* Custom checkbox */
.uv-auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.uv-auth-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.uv-auth-checkmark {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
}

.uv-auth-checkbox input:checked~.uv-auth-checkmark {
    background: #0035a8;
    border-color: #0035a8;
}

.uv-auth-checkbox input:checked~.uv-auth-checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.uv-auth-forgot {
    font-size: 13px;
    color: #0035a8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
    white-space: nowrap;
}

.uv-auth-forgot:hover {
    color: #0052cc;
    text-decoration: underline;
}

/* ===== TERMS CHECKBOX ROW ===== */
.uv-auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.uv-auth-terms .uv-auth-checkbox {
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}

.uv-auth-terms .uv-auth-checkmark {
    margin-top: 2px;
}

.uv-auth-terms-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
}

.uv-auth-terms-text a {
    color: #0035a8;
    font-weight: 500;
    text-decoration: none;
}

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

/* ===== BUTTONS ===== */
.uv-auth-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #0035a8, #0052cc);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    text-decoration: none;
}

.uv-auth-btn-primary:hover {
    background: linear-gradient(135deg, #002d8a, #0035a8);
    box-shadow: 0 4px 16px rgba(0, 53, 168, 0.35);
    transform: translateY(-1px);
    color: #fff;
}

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

.uv-auth-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    background: #fff;
    color: #0035a8;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border: 1.5px solid #0035a8;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.uv-auth-btn-secondary:hover {
    background: #eef4ff;
    box-shadow: 0 2px 8px rgba(0, 53, 168, 0.15);
    color: #0035a8;
    text-decoration: none;
}

/* ===== DIVIDER ===== */
.uv-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #94a3b8;
}

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

/* ===== INLINE LINK ROW ===== */
.uv-auth-link-row {
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
}

.uv-auth-link-row a {
    color: #0035a8;
    font-weight: 600;
    text-decoration: none;
}

.uv-auth-link-row a:hover {
    text-decoration: underline;
}

/* ===== FORM SECTIONS (Register - two columns) ===== */
.uv-auth-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.uv-auth-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .uv-auth-left {
        display: none;
    }

    .uv-auth-right {
        padding: 32px 20px;
    }

    .uv-auth-box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .uv-auth-right {
        padding: 28px 16px;
        background: #fff;
        align-items: flex-start;
        padding-top: 48px;
    }

    .uv-auth-title {
        font-size: 24px;
    }

    .uv-auth-fields-row {
        grid-template-columns: 1fr;
    }

    .uv-auth-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}