:root {
    color-scheme: light;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #f6f1e8;
    color: #241f1a;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f6f1e8; }

.register-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    background:
        linear-gradient(135deg, rgba(31, 92, 88, 0.12), transparent 46%),
        linear-gradient(315deg, rgba(216, 161, 93, 0.18), transparent 42%),
        #f6f1e8;
}

.register-shell {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
    gap: 18px;
    align-items: stretch;
}

.register-intro,
.register-form {
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 64px rgba(36, 31, 26, 0.12);
}

.register-intro {
    min-height: 560px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: #142826;
    position: relative;
    overflow: hidden;
}

.auth-photo {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 9, 8, 0.08), rgba(10, 9, 8, 0.76)), url("/img/premium/cafe-counter.jpg");
    background-size: cover;
    background-position: center;
}

.register-intro > *:not(.auth-photo) {
    position: relative;
    z-index: 1;
}

.language-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.language-switcher a {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.language-switcher a.active {
    background: #d8a15d;
    border-color: #d8a15d;
    color: #142826;
}

.eyebrow {
    margin: auto 0 16px;
    color: #d8a15d;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    max-width: 10ch;
    font-size: 56px;
    line-height: 1;
}

.intro-text {
    margin: 24px 0 0;
    max-width: 460px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.55;
}

.register-form {
    padding: 30px;
    display: grid;
    align-content: center;
    gap: 16px;
}

.register-form label {
    display: grid;
    gap: 7px;
}

.register-form label span {
    font-size: 14px;
    font-weight: 900;
}

input,
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(36, 31, 26, 0.14);
    background: #fbf8f2;
    color: #241f1a;
    padding: 0 13px;
    font: inherit;
}

input:focus,
select:focus {
    outline: 3px solid rgba(31, 92, 88, 0.18);
    border-color: #1f5c58;
}

small,
.terms-error {
    color: #b42318;
    font-size: 13px;
}

.terms-row {
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 10px;
}

.terms-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 1px;
}

button {
    min-height: 52px;
    border: 0;
    background: #1f5c58;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

button:hover {
    background: #173f3d;
}

.success-message,
.error-message {
    padding: 12px 14px;
    font-weight: 800;
}

.success-message {
    border: 1px solid rgba(31, 92, 88, 0.22);
    background: rgba(31, 92, 88, 0.08);
    color: #1f5c58;
}

.error-message {
    border: 1px solid rgba(180, 35, 24, 0.22);
    background: rgba(180, 35, 24, 0.08);
    color: #b42318;
}

.form-link {
    color: #1f5c58;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.form-link:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .register-page {
        padding: 10px;
    }

    .register-shell {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .register-intro {
        min-height: 340px;
        padding: 20px;
    }

    h1 {
        max-width: 100%;
        font-size: 40px;
    }

    .register-form {
        padding: 22px;
    }
}
