* {
    box-sizing: border-box;
}

:root {
    --bg: #0a0f0b;
    --panel: #0f1711;
    --panel-2: #131d16;
    --border: rgba(157, 255, 182, 0.16);
    --border-strong: rgba(157, 255, 182, 0.28);
    --text: #eef8f0;
    --muted: #9bb2a0;
    --accent: #7cf29a;
    --accent-soft: rgba(124, 242, 154, 0.12);
    --danger: #ff8b8b;
    --danger-soft: rgba(255, 139, 139, 0.10);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

body {
    margin: 0;
    color: var(--text);
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    background:
        radial-gradient(circle at top center, rgba(124, 242, 154, 0.08), transparent 28rem),
        radial-gradient(circle at bottom left, rgba(124, 242, 154, 0.05), transparent 26rem),
        linear-gradient(180deg, #08100a 0%, #0a0f0b 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.tm-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.tm-shell {
    width: min(100%, 560px);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
    box-shadow: var(--shadow);
}

.tm-shell-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.tm-dots {
    display: inline-flex;
    gap: 8px;
}

.tm-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
}

.tm-dots span:first-child {
    background: #ff7b72;
}

.tm-dots span:nth-child(2) {
    background: #f2cc60;
}

.tm-dots span:last-child {
    background: #7cf29a;
}

.tm-shell-title {
    color: var(--muted);
    font-size: 12px;
}

.tm-shell-body {
    padding: clamp(26px, 5vw, 36px);
}

.tm-kicker {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 13px;
}

h1 {
    margin: 0;
    font-size: clamp(36px, 8vw, 58px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 700;
}

.tm-subtitle {
    max-width: 36ch;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.tm-alert {
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 139, 139, 0.24);
    border-radius: 14px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 14px;
}

.tm-form {
    margin-top: 26px;
}

.tm-form label {
    display: block;
    margin-bottom: 10px;
    color: #dff5e4;
    font-size: 13px;
}

.tm-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    height: 54px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
}

.tm-input-prefix {
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
}

.tm-input-wrap input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 15px;
}

.tm-input-wrap input::placeholder {
    color: #7f9383;
}

.tm-input-wrap:focus-within {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 4px rgba(124, 242, 154, 0.08);
}

.tm-form button {
    width: 100%;
    height: 50px;
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

.tm-form button:hover {
    border-color: var(--border-strong);
    background: rgba(124, 242, 154, 0.18);
}

.tm-footer-note {
    margin: 16px 0 0;
    color: #6f8575;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 520px) {
    .tm-shell {
        border-radius: 18px;
    }

    .tm-shell-body {
        padding: 22px;
    }

    h1 {
        font-size: 34px;
    }
}