*, *::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: var(--green);
    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;
}

.brand-tags {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.brand-tag {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

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

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

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

.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: 36px;
}

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

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

/* ── FIELDS ── */
.field {
    margin-bottom: 20px;
}

.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 {
    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); }

/* ── OPTIONS ROW ── */
.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    font-size: 0.82rem;
}

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

.remember input[type="checkbox"] {
    accent-color: var(--green-mid);
    width: 15px;
    height: 15px;
}

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

.forgot:hover { text-decoration: underline; }

/* ── SUBMIT BUTTON ── */
.btn-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--green-mid), var(--green));
    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); }

/* ── ERROR MESSAGE ── */
.error-msg {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    color: #c0392b;
    font-size: 0.82rem;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
}

/* ── 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: 220px; }
    .brand h1 { font-size: 1.5rem; }
    .brand p, .brand-tags { display: none; }
    .right-panel { padding: 24px 16px; }
    .form-box { padding: 28px 24px; }
}
