@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800;900&display=swap");

:root {
    --bg: #fbf7f2;
    --surface: #ffffff;
    --line: #e6d9cf;
    --text: #261f1c;
    --muted: #776b64;
    --accent: #9b405b;
    --accent-hover: #7e3047;
    --soft: #fff0f3;
    --danger: #9a3412;
    --shadow: 0 22px 70px rgba(73, 48, 39, 0.14);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0;
}

.panel {
    width: 100%;
    max-width: 620px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 22px;
    box-shadow: var(--shadow);
}

.section-label {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1, h2, p { margin: 0; letter-spacing: 0; }
h1 { font-size: 36px; line-height: 1.1; }
h2 { font-size: 20px; }

.mode-switch {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 22px 0 18px;
}

.mode-button {
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    padding: 8px 12px;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

.mode-button.active {
    border-color: var(--line);
    background: #ffffff;
    color: var(--accent);
    box-shadow: 0 10px 22px rgba(73, 48, 39, 0.08);
}

.form {
    display: grid;
    align-content: start;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    padding: 16px;
}

.is-hidden {
    display: none;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

input {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    padding: 10px 12px;
    font-weight: 700;
}

input:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(155, 64, 91, 0.16);
}

.primary-action, .secondary-action {
    min-height: 42px;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.primary-action {
    border: 0;
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(155, 64, 91, 0.24);
}

.primary-action:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(155, 64, 91, 0.28);
}

.secondary-action {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
}

.message {
    margin-top: 16px;
    color: var(--muted);
    font-weight: 800;
}

.message.error { color: var(--danger); }

@media (max-width: 760px) {
    .mode-switch { flex-direction: column; }
    h1 { font-size: 30px; }
}
