/* ============================================================
   Laurette OTP Signup — modern split-panel UX
   ============================================================ */

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

/* Grand Sapphire for titles (bundled) */
@font-face {
    font-family: 'Grand Sapphire';
    src: url('fonts/GrandSapphire-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Laurette brand palette — taupe + soft beige accent */
    --lotp-accent:      #897c6e;  /* main theme — taupe */
    --lotp-accent-2:    #9a8d7e;  /* lighter taupe (gradient sheen) */
    --lotp-accent-dk:   #6e6357;  /* deeper taupe */
    --lotp-accent-soft: #d4c2b4;  /* accent — soft beige */
    --lotp-ink:         #2a241f;  /* near-black warm */
    --lotp-muted:       #9b9189;
    --lotp-border:      #e7ddd5;
    --lotp-bg-soft:     #f5efe9;  /* warm cream */
    --lotp-radius:      10px;
    --lotp-radius-sm:   10px;

    --lotp-font-title:  'Grand Sapphire', Georgia, 'Times New Roman', serif;
    --lotp-font-body:   'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── Card shell ────────────────────────────────────────────── */
#lotp-wrap.lotp-card {
    display: flex;
    max-width: 900px;
    margin: 32px auto;
    background: #fff;
    border-radius: var(--lotp-radius);
    box-shadow: 0 30px 70px -20px rgba(80, 70, 60, 0.3);
    overflow: hidden;
    font-family: var(--lotp-font-body);
    color: var(--lotp-ink);
}
#lotp-wrap.lotp-card .lotp-title { font-family: var(--lotp-font-title); }
#lotp-wrap.lotp-card p,
#lotp-wrap.lotp-card label,
#lotp-wrap.lotp-card input,
#lotp-wrap.lotp-card button,
#lotp-wrap.lotp-card a,
#lotp-wrap.lotp-card span { font-family: var(--lotp-font-body); }

/* ── Panes ─────────────────────────────────────────────────── */
.lotp-pane {
    flex: 1 1 50%;
    min-width: 0;
}
.lotp-pane-form {
    padding: 44px 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Right decorative pane — gradient fallback, image if configured */
.lotp-pane-art {
    position: relative;
    background:
        radial-gradient(120% 120% at 70% 20%, #d4c2b4 0%, transparent 55%),
        radial-gradient(140% 120% at 20% 80%, #c7b8a8 0%, transparent 50%),
        linear-gradient(135deg, #9a8d7e 0%, #897c6e 55%, #6e6357 100%);
    background-size: cover;
    background-position: center;
    min-height: 600px;
}
.lotp-art-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 34px;
    background: linear-gradient(to top, rgba(50, 44, 38, 0.6), transparent 55%);
}
.lotp-art-text { font-family: var(--lotp-font-title); }
.lotp-art-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

/* ── Tabs (Login / Sign up) ────────────────────────────────── */
.lotp-tabs {
    display: flex;
    background: var(--lotp-bg-soft);
    border-radius: 999px;
    padding: 5px;
    margin-bottom: 30px;
    width: fit-content;
}
.lotp-tab {
    border: none;
    background: none;
    padding: 9px 26px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--lotp-muted);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1;
}
.lotp-tab.is-active {
    background: linear-gradient(135deg, var(--lotp-accent), var(--lotp-accent-2));
    color: #fff;
    box-shadow: 0 6px 16px -4px rgba(137, 124, 110, 0.55);
}

/* ── Headings ──────────────────────────────────────────────── */
.lotp-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--lotp-ink);
    line-height: 1.2;
}
.lotp-sub {
    color: var(--lotp-muted);
    margin: 0 0 24px;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ── Messages ──────────────────────────────────────────────── */
.lotp-msg {
    border-radius: var(--lotp-radius-sm);
    padding: 11px 15px;
    margin-bottom: 18px;
    font-size: 0.86rem;
    line-height: 1.5;
}
.lotp-msg.lotp-error   { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.lotp-msg.lotp-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ── Honeypot (invisible to humans, present for bots) ──────── */
.lotp-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0;
    pointer-events: none;
}

/* ── Fields ────────────────────────────────────────────────── */
.lotp-field {
    position: relative;
    margin-bottom: 14px;
}
.lotp-field input[type="text"],
.lotp-field input[type="email"],
.lotp-field input[type="tel"],
.lotp-field input[type="date"],
.lotp-field input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1.5px solid var(--lotp-border);
    border-radius: var(--lotp-radius-sm);
    font-size: 0.95rem;
    background: #fff;
    color: var(--lotp-ink);
    transition: border-color 0.18s, box-shadow 0.18s;
}
.lotp-field input::placeholder { color: #b4b3c4; }
.lotp-field input:focus {
    outline: none;
    border-color: var(--lotp-accent);
    box-shadow: 0 0 0 4px rgba(212, 194, 180, 0.45);
}

/* Date field with floating label */
.lotp-field-date .lotp-float-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #fff;
    padding: 0 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--lotp-muted);
    letter-spacing: 0.02em;
}

/* Password show/hide */
.lotp-has-toggle input { padding-right: 46px; }
.lotp-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    opacity: 0.45;
    padding: 6px 8px;
    line-height: 1;
}
.lotp-eye:hover  { opacity: 0.8; }
.lotp-eye.is-on  { opacity: 0.9; }

/* ── Login row: remember me / forgot password ──────────────── */
.lotp-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 18px;
    font-size: 0.85rem;
}
.lotp-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--lotp-muted);
    cursor: pointer;
}
.lotp-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--lotp-accent);
    cursor: pointer;
}
.lotp-forgot {
    color: var(--lotp-accent);
    font-weight: 600;
    text-decoration: none;
}
.lotp-forgot:hover { text-decoration: underline; }

/* ── Terms checkbox ────────────────────────────────────────── */
.lotp-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 22px;
    font-size: 0.86rem;
    color: var(--lotp-muted);
    line-height: 1.5;
    cursor: pointer;
}
.lotp-check input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--lotp-accent);
    flex: 0 0 auto;
    cursor: pointer;
}
.lotp-check a {
    color: var(--lotp-accent);
    font-weight: 600;
    text-decoration: none;
}
.lotp-check a:hover { text-decoration: underline; }

/* ── Buttons ───────────────────────────────────────────────── */
.lotp-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--lotp-accent), var(--lotp-accent-dk));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--lotp-radius-sm);
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 12px 24px -8px rgba(137, 124, 110, 0.6);
}
.lotp-btn:hover    { transform: translateY(-1px); box-shadow: 0 16px 30px -8px rgba(137, 124, 110, 0.75); }
.lotp-btn:active   { transform: translateY(0); }
.lotp-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.lotp-links-row {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}
.lotp-link-btn {
    background: none;
    border: none;
    color: var(--lotp-accent);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.lotp-link-btn:hover { text-decoration: underline; }

/* ── OTP input ─────────────────────────────────────────────── */
.lotp-otp-field input {
    text-align: center;
    font-size: 2.1rem !important;
    font-weight: 700;
    letter-spacing: 0.7rem;
    padding: 16px 14px !important;
    text-indent: 0.7rem; /* visual centring with letter-spacing */
}

/* ── Success ───────────────────────────────────────────────── */
.lotp-success-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #34d399, #059669);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    margin: 0 auto 22px;
    box-shadow: 0 12px 26px -8px rgba(5, 150, 105, 0.6);
}
#lotp-step-3 { text-align: center; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 760px) {
    #lotp-wrap.lotp-card {
        flex-direction: column;
        max-width: 440px;
        margin: 20px auto;
    }
    .lotp-pane-art {
        order: -1;
        min-height: 150px;
    }
    .lotp-pane-form { padding: 32px 26px; }
    .lotp-art-overlay { padding: 20px; align-items: center; }
    .lotp-art-text { font-size: 1.15rem; }
}
