
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --gold-pale: #fdf6e3;
    --rose: #9b2335;
    --rose-light: #c0394d;
    --rose-pale: #fdf0f2;
    --cream: #faf7f2;
    --dark: #1c1008;
    --text: #4a3728;
    --muted: #9e8878;
    --border: #e8ddd0;
    --white: #ffffff;
    --error: #c0394d;
    --success: #2d7a5f;
}

body {
    font-family:
        "Figtree",
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
    background: var(--cream);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ══════════════════════════════════════════
   WRAPPER
══════════════════════════════════════════ */
.ua-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ══════════════════════════════════════════
   LEFT PANEL
══════════════════════════════════════════ */
.ua-panel {
    flex: 0 0 44%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    overflow: hidden;
    background: var(--rose);
}

/* Background image overlay */
.ua-panel-bg {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='900' viewBox='0 0 800 900'%3E%3Crect width='800' height='900' fill='%23831a2a'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

/* Dark overlay for readability */
.ua-panel-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(28, 8, 8, 0.55) 0%,
        rgba(155, 35, 53, 0.4) 100%
    );
}

/* Decorative gold border frame */
.ua-panel-frame {
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    pointer-events: none;
    z-index: 2;
}

.ua-panel-frame::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(201, 168, 76, 0.18);
}

/* Corner ornaments */
.ua-panel-frame::after {
    content: "✦";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 18px;
    background: var(--rose);
    padding: 0 8px;
}

/* Decorative circles */
.ua-panel::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.12);
    top: -100px;
    right: -100px;
    z-index: 2;
}

.ua-panel::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.1);
    bottom: -60px;
    left: -60px;
    z-index: 2;
}

.ua-panel-content {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */
.ua-panel-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

.ua-panel-logo .logo-emblem {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.15);
    border: 1.5px solid rgba(201, 168, 76, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--gold-light);
}

.ua-panel-logo .logo-name {
    /* font-family: "Cormorant Garamond", serif; */
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ua-panel-logo .logo-tagline {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Divider ornament */
.ua-panel-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
    max-width: 280px;
}

.ua-panel-divider::before,
.ua-panel-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.5));
}

.ua-panel-divider::after {
    background: linear-gradient(to left, transparent, rgba(201, 168, 76, 0.5));
}

.ua-panel-divider span {
    color: var(--gold);
    font-size: 14px;
}

/* Panel text */
.ua-panel-text h2 {
    /* font-family: "Cormorant Garamond", serif; */
    font-size: 2.2rem;
    font-weight: 600;
    font-style: italic;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 14px;
}

.ua-panel-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 280px;
}

/* Feature badges */
.ua-panel-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 32px;
    width: 100%;
    max-width: 280px;
}

.ua-panel-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
}

.ua-panel-feature .feat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(201, 168, 76, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ua-panel-feature span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* ══════════════════════════════════════════
   FORM SIDE
══════════════════════════════════════════ */
.ua-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: var(--white);
    overflow-y: auto;
}

.ua-form-box {
    width: 100%;
    max-width: 420px;
}

/* Heading */
.ua-heading {
    margin-bottom: 28px;
}

.ua-heading .ua-heading-ornament {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ua-heading .ua-heading-ornament span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

.ua-heading .ua-heading-ornament::before,
.ua-heading .ua-heading-ornament::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
}

.ua-heading .ua-heading-ornament::after {
    background: linear-gradient(to left, transparent, var(--gold));
}

.ua-heading h1 {
    /* font-family: "Cormorant Garamond", serif; */
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.ua-heading p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ── Alerts ──────────────────────────────── */
.ua-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.ua-alert.error {
    background: var(--rose-pale);
    border-left: 3px solid var(--rose);
    color: var(--rose);
}

.ua-alert.success {
    background: rgba(45, 122, 95, 0.07);
    border-left: 3px solid var(--success);
    color: var(--success);
}

.ua-alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Fields ──────────────────────────────── */
.ua-field {
    margin-bottom: 16px;
}

.ua-field label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    /* text-transform: uppercase; */
}

.ua-input-wrap {
    position: relative;
}

.ua-input-wrap .ua-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

.ua-input-wrap {
    position: relative;
    display: block;
}

.ua-input-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 44px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--dark);
    background: var(--cream);
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
    outline: none;
    font-family: "Inter", sans-serif;
}

.ua-input-wrap input::placeholder {
    color: var(--muted);
}

.ua-input-wrap input:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.ua-input-wrap input.is-invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(192, 57, 77, 0.1);
}

.ua-input-wrap .ua-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.ua-input-wrap .ua-eye:hover {
    color: var(--gold);
}

.ua-field-error {
    font-size: 0.78rem;
    color: #c0394d;
    color: var(--error);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Row ─────────────────────────────────── */
.ua-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.ua-row label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    cursor: pointer;
}

.ua-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--gold);
    cursor: pointer;
}

.ua-row a {
    color: var(--rose);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.82rem;
}

.ua-row a:hover {
    text-decoration: underline;
}

/* ── Button ──────────────────────────────── */
.ua-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--rose) 0%, var(--rose-light) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        opacity 0.2s,
        transform 0.1s,
        box-shadow 0.2s;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Inter", sans-serif;
    position: relative;
    overflow: hidden;
}

.ua-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
}

.ua-btn:hover {
    opacity: 0.93;
    box-shadow: 0 6px 20px rgba(155, 35, 53, 0.3);
}

.ua-btn:active {
    transform: scale(0.99);
}
.ua-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Bottom ──────────────────────────────── */
.ua-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--muted);
}

.ua-bottom a {
    color: var(--rose);
    font-weight: 600;
    text-decoration: none;
}

.ua-bottom a:hover {
    text-decoration: underline;
}

/* ── OTP ─────────────────────────────────── */
.ua-otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0;
}

.ua-otp-inputs input {
    width: 54px;
    height: 58px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    /* font-family: "Cormorant Garamond", serif; */
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--cream);
    color: var(--dark);
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.ua-otp-inputs input:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.ua-otp-inputs input.is-invalid {
    border-color: var(--error);
}

.ua-resend {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 14px;
}

.ua-resend a {
    color: var(--rose);
    font-weight: 600;
    text-decoration: none;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 900px) {
    .ua-panel {
        flex: 0 0 38%;
        padding: 40px 28px;
    }
}

@media (max-width: 680px) {
    .ua-panel {
        display: none;
    }
    .ua-form-side {
        padding: 32px 20px;
    }
}
