:root {
    --bg: linear-gradient(135deg, #e7efe8 0%, #f6f0e3 45%, #d9e8e0 100%);
    --panel: #ffffff;
    --panel-border: rgba(22, 48, 43, 0.12);
    --text: #18312c;
    --text-muted: #637670;
    --pine-teal: #28473D;
    --jungle-green: #2EA46D;
    --accent: #1e8f6d;
    --accent-strong: #145a45;
    --white: #FEFEFF;

    --warning-bg: #fff5dc;
    --warning-border: #f2d48e;
    --warning-text: #6b4f10;
    --error-bg: #fff0ef;
    --error-border: #edb8b1;
    --error-text: #9b3026;
    --success-bg: #edf9f2;
    --success-border: #b7e1c6;
    --success-text: #236641;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.shell {
    width: 100%;
    max-width: 680px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 26px 60px rgba(23, 51, 44, 0.16);
}

.header {
    padding: 34px 34px 28px;
    background: linear-gradient(160deg, rgba(17, 65, 53, 0.98), rgba(24, 97, 76, 0.94));
    color: #eff8f4;
}

.eyebrow {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.header h1 {
    font-size: 32px;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.header p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(239, 248, 244, 0.82);
    max-width: 520px;
}

.body {
    padding: 30px 34px 34px;
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.alert-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning-text);
}

.copy {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.step {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--panel-border);
    background: rgba(24, 49, 44, 0.03);
    transition: all 0.2s ease;
}

.step strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text);
}

.step span {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.step.is-active {
    border-color: var(--jungle-green);
    background: rgba(46, 164, 109, 0.08);
}

.step.is-active strong {
    color: var(--accent-strong);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--panel-border);
    background: #ffffff;
    color: var(--text);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(30, 143, 109, 0.5);
    box-shadow: 0 0 0 4px rgba(30, 143, 109, 0.12);
}

.field-errors {
    margin-top: 8px;
    color: var(--error-text);
    font-size: 13px;
}

.support-box {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(24, 49, 44, 0.03);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid var(--panel-border);
}

.btn-primary,
.btn-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #f6fffb;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 24px rgba(20, 90, 69, 0.2);
}

.btn-secondary {
    border: 1px solid var(--panel-border);
    color: var(--text);
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(24, 49, 44, 0.05);
    border-color: var(--jungle-green);
}

@media (max-width: 560px) {
    body {
        padding: 0;
    }

    .shell {
        min-height: 100vh;
        border-radius: 0;
    }

    .header,
    .body {
        padding-left: 24px;
        padding-right: 24px;
    }

    .steps,
    .actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}
