:root {
    --cz-cream: #fef8e8;
    --cz-cream-2: #fdefd0;
    --cz-orange: #F2822E;
    --cz-orange-dark: #d96d1a;
    --cz-ink: #2b2b2b;
    --cz-muted: #6b6b6b;
    --cz-border: #e5d9c3;
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #fef8e8 0%, #fbe9c8 55%, #f7dfb4 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-family: 'Poppins', sans-serif;
    color: var(--cz-ink);
    margin: 0;
    padding: 16px 16px;
}

.login-container {
    position: relative;
    margin: auto;
    background: #ffffff;
    width: 900px;
    max-width: 100%;
    display: flex;
    align-items: center;
    padding: 18px 40px;
    border-radius: 12px;
    box-shadow: 0 30px 70px -25px rgba(120, 72, 20, 0.35);
    border: 1px solid rgba(224, 122, 72, 0.12);
    overflow: hidden;
}

.login-container::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(224, 122, 72, 0.18), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ---------- Brand / left side ---------- */
.brand-section {
    flex: 1;
    text-align: center;
    padding-right: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--cz-border);
}

.logo-area {
    display: inline-block;
    text-align: center;
    margin-bottom: 6px;
}

.logo-area img {
    width: 200px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.tagline {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: var(--cz-muted);
    margin-top: 6px;
    margin-bottom: 0px;
}

.illustration img {
    width: 100%;
    max-width: 250px;
    margin: 6px auto;
    display: block;
    border-radius: 5px;
}

.mission-text {
    font-family: 'Playfair Display', serif;
    color: #5d6d5e;
    font-size: 16px;
    line-height: 1.25;
    margin: 0;
}

/* ---------- Launch offer banner ---------- */
.launch-offer-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 8px 0 0;
    padding: 5px 8px;
    border-radius: 7px;
    background: linear-gradient(135deg, #fff3e3 0%, #ffe7cc 100%);
    border: 1px solid rgba(224, 122, 72, 0.28);
    color: var(--cz-ink);
    box-shadow: 0 8px 18px -12px rgba(224, 122, 72, 0.45);
    line-height: 1.35;
    text-align: left;
}

.launch-offer-banner .lo-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.launch-offer-banner .lo-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--cz-muted);
}

.launch-offer-banner .lo-text strong {
    display: block;
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 2px;
    color: var(--cz-orange-dark);
}

/* ---------- Form / right side ---------- */
.form-section {
    flex: 1;
    padding-left: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 3px;
    color: var(--cz-ink);
}

.form-title::after {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--cz-orange), #f2a973);
    margin-bottom: 6px;
}

.input-group {
    margin-bottom: 6px;
}

.input-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 13px;
    color: var(--cz-ink);
}

.input-group input,
.form-control {
    width: 100%;
    box-sizing: border-box;
}

.step1,
.step2,
.step3 {
    display: none;
}

.step1.active,
.step2.active,
.step3.active {
    display: block;
}

/* ---------- Step indicator ---------- */
.step-indicator {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.step-dot span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #fffdf8;
    border: 1.5px solid var(--cz-border);
    color: var(--cz-muted);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.step-dot label {
    font-size: 11px;
    color: var(--cz-muted);
    font-weight: 500;
}

.step-dot.active span {
    background: linear-gradient(135deg, var(--cz-orange) 0%, var(--cz-orange-dark) 100%);
    border-color: var(--cz-orange-dark);
    color: #ffffff;
}

.step-dot.active label {
    color: var(--cz-orange-dark);
    font-weight: 700;
}

.step-dot.done span {
    background: #fff3e3;
    border-color: var(--cz-orange);
    color: var(--cz-orange-dark);
}

.step-line {
    width: 34px;
    height: 2px;
    background: var(--cz-border);
    margin-top: 10px;
}

/* ---------- OTP verification screen ---------- */
.otp-visual {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff3e3 0%, #ffe7cc 100%);
    border: 1px solid rgba(224, 122, 72, 0.28);
}

.otp-heading {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 6px;
    color: var(--cz-ink);
}

.otp-subtext {
    text-align: center;
    font-size: 14px;
    color: var(--cz-muted);
    margin: 0;
}

.otp-subtext strong {
    color: var(--cz-ink);
}

.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 10px 0 4px;
}

.otp-box {
    width: 42px;
    height: 42px;
    padding: 0;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 1.5px solid var(--cz-border);
    border-radius: 12px;
    background: #fffdf8;
    color: var(--cz-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.otp-box:focus {
    outline: none;
    border-color: var(--cz-orange);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(224, 122, 72, 0.14);
}

.otp-resend-row {
    text-align: center;
    margin-top: 10px;
}

.otp-resend-row .send-otp.disabled {
    color: #b8b0a2;
    cursor: default;
    pointer-events: none;
}

.resend-timer {
    display: block;
    font-size: 12px;
    color: var(--cz-muted);
    margin-top: 4px;
}

.step-back {
    text-align: center;
    margin-top: 14px;
    margin-bottom: 0;
}

.step-back a {
    font-size: 13px;
    color: var(--cz-muted);
    text-decoration: none;
}

.step-back a:hover {
    color: var(--cz-orange);
    text-decoration: underline;
}

.input-group input {
    padding: 8px 14px;
    border: 1.5px solid var(--cz-border);
    border-radius: 12px;
    background: #fffdf8;
    font-size: 15px;
    color: var(--cz-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-group input::placeholder {
    color: #b8b0a2;
}

.input-group input:focus {
    outline: none;
    border-color: var(--cz-orange);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(224, 122, 72, 0.14);
}

/* ---------- Password show/hide toggle ---------- */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 46px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #9a9081;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, background 0.2s ease;
}

.toggle-password:focus,
.toggle-password:focus-visible,
.toggle-password:active {
    outline: none;
    box-shadow: none;
}

.toggle-password:hover {
    color: var(--cz-orange);
    background: rgba(224, 122, 72, 0.1);
}

.toggle-password .eye-off {
    display: none;
}

.toggle-password.is-visible .eye-on {
    display: none;
}

.toggle-password.is-visible .eye-off {
    display: block;
}

/* ---------- Buttons ---------- */
.btn,
.btn-login,
.btn-create,
.btn-signin {
    width: auto;
    min-width: 180px;
    max-width: 100%;
    padding: 9px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn,
.btn-login,
.btn-signin {
    background: linear-gradient(135deg, var(--cz-orange) 0%, var(--cz-orange-dark) 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px -10px rgba(224, 122, 72, 0.8);
}

.btn:hover,
.btn-login:hover,
.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -10px rgba(224, 122, 72, 0.9);
    color: #ffffff;
}

.btn:active,
.btn-login:active,
.btn-signin:active {
    transform: translateY(0);
}

.btn-create {
    margin-top: 6px;
    background: #ffffff;
    border: 1.5px solid var(--cz-orange);
    color: var(--cz-orange);
}

.btn-create:hover {
    background: var(--cz-orange);
    color: #ffffff;
    transform: translateY(-2px);
}

.send-otp {
    display: inline-block;
    margin-top: 8px;
    color: var(--cz-orange);
    cursor: pointer;
    font-weight: 600;
}

/* ---------- Misc ---------- */
.forgot-password {
    text-align: right;
    margin-top: 10px;
}

.forgot-password a {
    font-size: 13px;
    color: var(--cz-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: var(--cz-orange);
    text-decoration: underline;
}

.signup-prompt {
    text-align: center;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--cz-border);
}

.signup-prompt p {
    font-size: 14px;
    margin: 0;
    padding: 0;
    color: var(--cz-muted);
}

.signup-prompt a {
    color: var(--cz-orange);
    text-decoration: none;
}

.signup-prompt a:hover {
    text-decoration: underline;
}

.error-message,
.success-message {
    font-size: 12.5px;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.error-message {
    color: #e74c3c;
}

.success-message {
    color: #27ae60;
}

.error-message.show,
.success-message.show {
    display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .login-container {
        flex-direction: column;
        padding: 40px 32px;
        max-width: 520px;
    }

    .brand-section {
        padding-right: 0;
        padding-bottom: 30px;
        border-right: none;
        border-bottom: 1px solid var(--cz-border);
    }

    .brand-section .illustration {
        display: none;
    }

    .form-section {
        padding-left: 0;
        margin-top: 30px;
    }

    .logo-area img {
        width: 240px;
    }

    .mission-text {
        font-size: 20px;
    }
}

@media (max-width: 520px) {
    body {
        padding: 20px 12px;
    }

    .login-container {
        padding: 30px 22px;
        border-radius: 18px;
    }

    .form-title {
        font-size: 28px;
    }

    .logo-area img {
        width: 200px;
    }
}
