:root {
    --bg: #f3f6f8;
    --panel: #ffffff;
    --ink: #101820;
    --muted: #687586;
    --line: #dce3ea;
    --orange: #ff5a1f;
    --dark: #07111a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--site-font-family, Arial, Helvetica, sans-serif);
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
    min-height: 100vh;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px clamp(24px, 6vw, 72px);
    background: var(--panel);
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-bottom: 46px;
    font-size: 26px;
    font-weight: 900;
}

.auth-logo span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 38px;
    border: 3px solid var(--dark);
    border-radius: 9px;
    color: var(--orange);
    font-size: 15px;
    transform: skew(-8deg);
}

.auth-logo strong {
    color: var(--orange);
}

.auth-logo small {
    font-size: 15px;
}

.auth-logo img {
    width: auto;
    max-width: var(--store-logo-width, 190px);
    max-height: var(--store-logo-height, 54px);
    object-fit: contain;
}

.auth-copy {
    margin-bottom: 24px;
}

.auth-copy p {
    margin: 0 0 8px;
    color: var(--orange);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}

.auth-copy h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.1;
}

.auth-copy span {
    color: var(--muted);
    line-height: 1.5;
}

.auth-alert {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    border: 1px solid #f4b2a0;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff1ed;
    color: #9d2f12;
    font-size: 14px;
}

.auth-alert p {
    margin: 0;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.auth-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 13px;
    background: #fbfcfd;
    color: var(--ink);
    font: inherit;
}

.auth-form input:focus {
    border-color: var(--orange);
    outline: 3px solid rgba(255, 90, 31, .14);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

.auth-check {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px !important;
    font-weight: 400 !important;
}

.auth-check input {
    width: 16px;
    min-height: 16px;
}

.auth-row a,
.auth-switch a {
    color: var(--orange);
    font-weight: 800;
}

.auth-form button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--orange);
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.auth-switch {
    margin: 22px 0 0;
    color: var(--muted);
}

.auth-side {
    display: flex;
    align-items: end;
    min-height: 100%;
    padding: 60px;
    background:
        linear-gradient(90deg, rgba(7, 17, 26, .98), rgba(7, 17, 26, .68)),
        url("/assets/frontend/smart-home-hero.png") center / cover;
    color: white;
}

.auth-side div {
    max-width: 560px;
}

.auth-side p {
    margin: 0 0 10px;
    color: #ffb18f;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-side h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1.02;
}

@media (max-width: 860px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-side {
        display: none;
    }
}
