:root {
    --guest-ink: #10213f;
    --guest-muted: #74819a;
    --guest-line: #e3e9f2;
    --guest-primary: #1e3a8a;
    --guest-navy: #0a1a2f;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--guest-ink);
    background:
        radial-gradient(circle at 12% 6%, rgba(46, 84, 140, .35), transparent 30rem),
        radial-gradient(circle at 88% 96%, rgba(28, 58, 100, .32), transparent 28rem),
        linear-gradient(160deg, #12253d 0%, #081422 58%, #050d18 100%);
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
    pointer-events: none;
}
body::before { width: 620px; height: 620px; right: -260px; top: -140px; }
body::after { width: 420px; height: 420px; left: -200px; bottom: -140px; }

a { color: var(--guest-primary); text-decoration: none; }

.guest-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    min-height: 100vh;
    padding: 48px 20px;
}

.guest-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-align: center;
}
.guest-brand-logo img { display: block; width: auto; height: 38px; }
.guest-brand-name { display: block; font: 700 14px/1 'Manrope', sans-serif; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.guest-brand-caption { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.guest-brand-mark { display: none; }

.guest-card {
    width: 100%;
    max-width: 460px;
    padding: 38px 40px 30px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
    animation: guest-in .45s ease both;
}
.guest-card-head { margin-bottom: 26px; }
.guest-card h2 { margin: 0 0 8px; color: var(--guest-ink); font: 800 26px/1.15 'Manrope', sans-serif; letter-spacing: -.045em; }
.guest-card-subtitle { margin: 0; color: var(--guest-muted); font-size: 13px; }

.guest-form { display: flex; flex-direction: column; gap: 17px; }
.guest-field label { display: block; margin-bottom: 7px; color: #29405f; font-size: 12px; font-weight: 700; }
.guest-field input {
    width: 100%; min-height: 46px; padding: 10px 13px; color: var(--guest-ink);
    border: 1px solid #dce3ee; border-radius: 10px; background: #fff;
    box-shadow: 0 2px 5px rgba(16, 33, 63, .025);
    font: 14px 'DM Sans', sans-serif; outline: none; transition: border .2s, box-shadow .2s;
}
.guest-field input:focus { border-color: #7f9cc4; box-shadow: 0 0 0 4px rgba(30, 58, 138, .12); }

.guest-password { position: relative; }
.guest-password input { padding-right: 46px; }
.guest-password-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent;
    color: var(--guest-muted); font-size: 15px; cursor: pointer;
}
.guest-password-toggle:hover { background: #f1f5fb; color: var(--guest-ink); }

.guest-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.guest-check { display: inline-flex; align-items: center; gap: 8px; color: #475569; font-size: 12.5px; cursor: pointer; }
.guest-check input { width: 15px; height: 15px; accent-color: var(--guest-primary); }
.guest-link { font-size: 12.5px; font-weight: 600; }

.guest-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 46px; margin-top: 4px; padding: 11px 16px;
    border: 0; border-radius: 10px; color: #fff; cursor: pointer;
    background: linear-gradient(135deg, #1e3a8a, #142a54);
    box-shadow: 0 8px 18px rgba(15, 32, 54, .25);
    font: 700 13px 'DM Sans', sans-serif; transition: transform .2s, box-shadow .2s;
}
.guest-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 23px rgba(15, 32, 54, .3); color: #fff; }
.guest-submit-link { margin-top: 18px; }

.guest-error { padding: 11px 13px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 12.5px; }
.guest-note { padding: 16px; border: 1px solid var(--guest-line); border-radius: 12px; background: #f8fafc; font-size: 13px; line-height: 1.6; color: #475569; }
.guest-note p { margin: 0 0 8px; }
.guest-note pre { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: #0f172a; color: #e2e8f0; font-size: 12px; overflow-x: auto; }

@keyframes guest-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 520px) {
    .guest-center { padding: 32px 16px; gap: 22px; }
    .guest-card { padding: 28px 22px 24px; border-radius: 17px; }
    .guest-card h2 { font-size: 23px; }
    .guest-brand-logo img { height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .guest-card { animation: none; } }
