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

:root {
    --gold: #e8a020;
    --gold-light: #f5c842;
    --green: #1a5c38;
    --green-mid: #2a7a4e;
    --green-light: #e8f5ee;
    --bg: #f4f4f0;
    --text: #1a1a1a;
    --muted: #888;
    --border: #e0e0dc;
    --white: #ffffff;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ── LEFT PANEL ── */
.left-panel {
    flex: 1;
    background: linear-gradient(160deg, var(--green) 0%, #0f3d24 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    top: -100px;
    left: -100px;
}

.left-panel::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(232, 160, 32, 0.12);
    bottom: -80px;
    right: -80px;
}

.brand {
    text-align: center;
    z-index: 1;
}

.brand-logo-fallback {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
}

.brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
}

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

.perks {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 280px;
}

.perk {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
}

.perk-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.decorative-leaf {
    position: absolute;
    font-size: 120px;
    opacity: 0.05;
    bottom: 60px;
    left: 30px;
    z-index: 0;
}

/* ── RIGHT PANEL ── */
.right-panel {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: var(--white);
    overflow-y: auto;
}

/* ── FORM BOX ── */
.form-box {
    width: 100%;
    max-width: 460px;
    background: var(--bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    margin: 20px 0;
}

.form-box h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 6px;
}

.form-box .subtitle {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.form-box .subtitle a {
    color: var(--green-mid);
    font-weight: 600;
    text-decoration: none;
}

.form-box .subtitle a:hover { text-decoration: underline; }

/* ── FIELDS ── */
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.input-wrap {
    position: relative;
}

.input-wrap i.icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.85rem;
}

.input-wrap input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap input:focus {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(42, 122, 78, 0.1);
}

.toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 0;
}

.toggle-pw:hover { color: var(--green-mid); }

/* ── PASSWORD STRENGTH ── */
.pw-strength {
    margin-top: 8px;
    display: flex;
    gap: 4px;
}

.pw-bar {
    height: 3px;
    flex: 1;
    border-radius: 2px;
    background: var(--border);
    transition: background 0.3s;
}

.pw-bar.weak { background: #e74c3c; }
.pw-bar.fair { background: var(--gold); }
.pw-bar.strong { background: var(--green-mid); }

.pw-label {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ── TERMS ── */
.terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.82rem;
    color: var(--text);
    cursor: pointer;
}

.terms input[type="checkbox"] {
    accent-color: var(--green-mid);
    width: 15px;
    height: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.terms a {
    color: var(--green-mid);
    font-weight: 600;
    text-decoration: none;
}

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

/* ── SUBMIT BUTTON ── */
.btn-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--gold), #c07010);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-submit:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

/* ── ALERT MESSAGES ── */
.alert-msg {
    font-size: 0.82rem;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
}

.alert-msg.error {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    color: #c0392b;
}

.alert-msg.success {
    background: var(--green-light);
    border: 1px solid #b2dfca;
    color: var(--green);
}

/* ── BACK LINK ── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s;
}

.back-link:hover { color: var(--green-mid); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    body { flex-direction: column; }
    .left-panel { padding: 40px 24px; min-height: 200px; }
    .brand h1 { font-size: 1.5rem; }
    .brand p, .perks { display: none; }
    .right-panel { padding: 24px 16px; }
    .form-box { padding: 28px 24px; }
    .field-row { grid-template-columns: 1fr; }
}
