:root {
    --bg: #eef4f3;
    --panel: #ffffff;
    --line: #d6e2df;
    --text: #142024;
    --muted: #647678;
    --graphite-900: #10191d;
    --graphite-800: #142024;
    --graphite-600: #26383d;
    --cyan-900: #005f61;
    --cyan-700: #007c79;
    --cyan-600: #0b918d;
    --cyan-500: #1aa6a0;
    --cyan-400: #45bbb6;
    --cyan-50: #dff3f1;
    --orange-900: #8d2808;
    --orange-700: #c93d0b;
    --orange-500: #ff6a1a;
    --orange-50: #fff0e7;
    --blue: var(--graphite-800);
    --red: var(--orange-700);
    --accent-gradient: linear-gradient(135deg, var(--graphite-600), var(--graphite-900));
}

* {
    box-sizing: border-box;
}

body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 4%, rgba(0, 124, 121, 0.12), transparent 30%),
        radial-gradient(circle at 92% 10%, rgba(240, 90, 22, 0.12), transparent 26%),
        var(--bg);
    font-family: "Segoe UI", Arial, sans-serif;
}

main {
    width: min(420px, calc(100vw - 32px));
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 18px 44px rgba(20, 32, 36, 0.14);
}

h1 {
    margin: 0 0 6px;
    font-size: 26px;
}

p {
    margin: 0 0 22px;
    color: var(--muted);
}

label {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--muted);
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--accent-gradient);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: var(--panel);
    font-weight: 800;
    text-decoration: none;
}

.divider {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.erro {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--orange-900);
    background: var(--orange-50);
}

.sucesso {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--cyan-900);
    background: var(--cyan-50);
}

.secondary-action {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin: 8px 0 14px;
    color: var(--cyan-700);
    font-weight: 800;
    text-decoration: none;
}

.totp-setup {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.totp-qr {
    width: min(220px, 100%);
    height: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.totp-secret {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    background: var(--cyan-50);
    font-size: 13px;
    line-break: anywhere;
}
