:root {
    --bg: #0f1714;
    --surface: #18221f;
    --surface-2: #1d2a26;
    --border: #34453f;
    --border-strong: #4a5e57;
    --rule: #26332f;
    --text: #e9eee9;
    --text-soft: #c5d0ca;
    --text-muted: #a9b8b1;
    --accent: #d2da62;
    --accent-hover: #eef3a0;
    --btn: #cbd35a;
    --btn-hover: #d9e070;
    --btn-text: #17201d;
    --notice-bg: #253326;
    --notice-border: #b09a1a;
    --error: #f0a08f;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 64px 16px 0 16px;
    background: var(--bg);
    color: var(--text);
    font-family: Figtree, "Segoe UI", sans-serif;
}

body.int {
    padding-top: 48px;
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-hover);
}

/* ---------- Login ---------- */

.form-signin {
    width: 100%;
    max-width: 680px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.imgheader {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.form-signin form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 36px 40px 40px 40px;
    margin: 0;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: 0.02em;
}

.field input {
    height: 52px;
    box-sizing: border-box;
    padding: 0 16px;
    font-family: inherit;
    font-size: 18px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
}

.field input::placeholder {
    color: #6f8279;
}

.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(210, 218, 98, 0.25);
}

.switch-lang {
    margin: 0;
    text-align: center;
    font-size: 17px;
    color: var(--text-soft);
}

.switch-lang strong {
    color: var(--text);
}

.switch-lang a {
    font-weight: 600;
}

.login-error {
    margin: 0;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--error);
    background: rgba(240, 160, 143, 0.08);
    border: 1px solid rgba(240, 160, 143, 0.4);
    border-radius: 10px;
}

.login-error[hidden] {
    display: none;
}

/* ---------- Buttons ---------- */

.btnunik {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 56px;
    padding: 0 16px;
    background: var(--btn);
    color: var(--btn-text);
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btnunik:hover,
.btnunik:focus-visible {
    background: var(--btn-hover);
    color: var(--btn-text);
}

.btnunik.caps {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btnunik svg {
    flex: none;
}

/* ---------- Speaker portal ---------- */

.head {
    width: 100%;
    max-width: 760px;
    margin-bottom: 28px;
}

.head .imgheader {
    border-radius: 16px;
}

.content {
    width: 100%;
    max-width: 760px;
    box-sizing: border-box;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 52px 56px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.content h1 {
    margin: 0;
    text-align: center;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 300;
    color: var(--text);
}

.content h1 span {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--accent);
}

.content p {
    margin: 0;
}

.content p.intro {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-soft);
}

.tools {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tools .btnunik {
    height: 60px;
    margin-top: 6px;
    border-radius: 12px;
}

.box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    box-sizing: border-box;
    padding: 18px 24px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
    font-size: 20px;
}

.box svg {
    flex: none;
}

.box:hover,
.box:focus-visible {
    color: var(--text);
    border-color: var(--accent);
    background: #223129;
}

.box.off {
    cursor: default;
}

.box.off:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.box .muted {
    color: var(--text-muted);
}

.important {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 32px;
    background: var(--notice-bg);
    border: 1px solid var(--notice-border);
    border-radius: 12px;
    text-align: center;
}

.important p {
    font-size: 17px;
    line-height: 1.55;
    color: var(--text);
}

.important p.title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.content p.contact {
    text-align: center;
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-soft);
}

.content p.thanks {
    text-align: center;
    font-size: 24px;
    font-weight: 300;
    color: var(--text);
}

/* ---------- Footer ---------- */

.footer {
    width: 100%;
    max-width: 680px;
    box-sizing: border-box;
    margin-top: auto;
    padding: 32px 0 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--rule);
}

body.int .footer {
    max-width: 760px;
}

.footer a {
    font-size: 16px;
}

.footer p {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
}

/* ---------- Modals (Bootstrap, dark theme) ---------- */

.modal-content {
    background: var(--surface);
    color: var(--text);
    font-family: Figtree, "Segoe UI", sans-serif;
}

.modal-header,
.modal-footer {
    border-color: var(--border);
}

.modal-title {
    font-size: 30px;
    padding-left: 18px;
    color: var(--accent);
}

.modal-body {
    padding: 30px;
    line-height: 1.6;
    color: var(--text-soft);
}

.modal-body.policy {
    max-width: 900px;
    margin: 0 auto;
}

.modal-body h2 {
    margin-top: 28px;
    font-size: 26px;
    color: var(--accent);
}

.modal-footer .btnunik {
    width: auto;
    height: 48px;
    padding: 0 28px;
    font-size: 17px;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
    body {
        padding-top: 24px;
    }

    body.int {
        padding-top: 16px;
    }

    .form-signin form {
        padding: 28px 20px 28px 20px;
    }

    .content {
        padding: 32px 20px;
        gap: 22px;
    }

    .content h1 {
        font-size: 23px;
    }

    .content p.intro {
        font-size: 17px;
    }

    .box {
        font-size: 18px;
        padding: 16px 18px;
        min-height: 64px;
    }

    .tools .btnunik {
        font-size: 17px;
    }

    .important {
        padding: 22px 18px;
    }

    .content p.thanks {
        font-size: 20px;
    }

    .modal-title {
        font-size: 22px;
        padding-left: 0;
    }

    .modal-body {
        padding: 20px;
    }
}
