@import url("/themes/odnasmeta/assets/vendor/fontawesome/css/all.min.css");

:root {
    --panel-blue: #0868f5;
    --panel-blue-dark: #0754d6;
    --panel-navy: #0b1730;
    --panel-muted: #53627c;
    --panel-line: #dce5f1;
    --panel-soft: #f4f8ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--panel-navy);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f5f9ff;
}

body.panel-auth {
    height: 100dvh;
    overflow: hidden;
}

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

button,
input {
    font: inherit;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(380px, 36.2vw) minmax(0, 1fr);
    height: 100dvh;
    overflow: hidden;
}

.auth-hero {
    position: relative;
    overflow: hidden;
    min-height: 100dvh;
    background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.78) 40%, rgba(255,255,255,.25)), url("/themes/odnasmeta/assets/images/hero-bg-living-room.jpg") center right / cover;
}

.auth-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: -102px;
    width: 210px;
    height: 100%;
    background: #f5f9ff;
    transform: skewX(-12deg);
    transform-origin: top;
}

.auth-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.54) 50%, rgba(255,255,255,.92));
}

.auth-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100dvh;
    padding: 24px 64px 24px 48px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    align-self: start;
    gap: 12px;
    width: fit-content;
}

.auth-logo img {
    width: 66px;
    height: 66px;
    object-fit: contain;
}

.auth-logo strong {
    display: block;
    color: #142341;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .04em;
}

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

.auth-logo em {
    display: block;
    margin-top: 3px;
    color: #3d4960;
    font-size: 14px;
    font-style: normal;
}

.auth-hero__text {
    align-self: start;
    margin-top: 34px;
}

.auth-hero__text h1 {
    margin: 0 0 18px;
    color: #0b1730;
    font-size: 36px;
    line-height: 1.13;
    font-weight: 900;
}

.auth-hero__text p {
    margin: 0;
    color: #43536f;
    font-size: 16px;
    line-height: 1.55;
}

.auth-benefits {
    display: grid;
    align-self: start;
    gap: 18px;
    max-width: 380px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.auth-benefits li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
}

.auth-benefits span,
.auth-security > span,
.auth-bottom span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--panel-blue);
    background: rgba(255,255,255,.72);
    border: 1px solid #d8e3f2;
    border-radius: 11px;
}

.auth-benefits i {
    font-size: 22px;
}

.auth-benefits strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 800;
}

.auth-benefits p {
    margin: 0;
    color: #43536f;
    font-size: 13px;
    line-height: 1.45;
}

.auth-security {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 15px;
    align-self: end;
    max-width: 360px;
    margin-top: 22px;
    padding: 18px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 14px;
    box-shadow: 0 22px 55px rgba(15, 40, 82, .13);
}

.auth-security > span {
    width: 48px;
    height: 48px;
    color: #0067ff;
    background: #fff;
}

.auth-security i {
    font-size: 26px;
}

.auth-security strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
}

.auth-security p,
.auth-copy {
    margin: 0;
    color: #52627d;
    font-size: 12px;
    line-height: 1.5;
}

.auth-copy {
    align-self: end;
    margin-top: 18px;
    font-size: 14px;
}

.auth-main {
    display: grid;
    align-content: center;
    gap: 24px;
    min-width: 0;
    min-height: 100dvh;
    padding: 28px 54px 24px 32px;
    overflow: hidden;
}

.auth-card {
    width: min(100%, 680px);
    min-height: 681px;
    margin: 0 auto;
    padding: 26px 30px 28px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(15, 40, 82, .12);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 26px;
    border-bottom: 1px solid #dce5f1;
}

.auth-tabs a {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 4px 18px 16px;
    color: #64728b;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 3px solid transparent;
}

.auth-tabs a.is-active {
    color: var(--panel-blue);
    border-color: var(--panel-blue);
}

.auth-alert {
    margin: -12px 0 18px;
    padding: 12px 14px;
    color: #a21d1d;
    background: #fff2f2;
    border: 1px solid #f0c8c8;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.auth-forms {
    display: block;
}

.auth-forms::before {
    display: none;
}

.auth-form {
    display: none;
    align-content: start;
    gap: 16px;
}

.auth-form.is-active {
    display: grid;
}

.auth-form--register {
    gap: 11px;
}

.auth-form header {
    margin-bottom: 4px;
}

.auth-form h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
}

.auth-form p {
    margin: 0;
    color: #63718a;
    font-size: 14px;
}

.auth-form label > span:first-child {
    display: block;
    margin-bottom: 6px;
    color: #0d1b36;
    font-size: 13px;
    font-weight: 800;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"],
.auth-input {
    width: 100%;
    height: 42px;
    color: #13223f;
    background: #fff;
    border: 1px solid #d6e0ee;
    border-radius: 8px;
    outline: 0;
}

.auth-form input {
    padding: 0 16px;
}

.auth-form input::placeholder {
    color: #8390a8;
}

.auth-input {
    display: flex;
    align-items: center;
}

.auth-input input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    border: 0;
}

.auth-input i {
    flex: 0 0 auto;
    margin-right: 14px;
    color: #8a96a9;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #63718a;
    font-size: 13px;
}

.auth-row a,
.auth-switch a,
.auth-terms a {
    color: var(--panel-blue);
    font-weight: 700;
}

.auth-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: #36445d;
    font-size: 13px;
    line-height: 1.4;
}

.auth-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-check > span {
    display: block;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    background: #fff;
    border: 1.5px solid #8da0ba;
    border-radius: 4px;
}

.auth-check input:checked + span {
    background: var(--panel-blue);
    border-color: var(--panel-blue);
    box-shadow: inset 0 0 0 3px #fff;
}

.auth-terms em {
    color: #33435e;
    font-style: normal;
}

.auth-submit {
    height: 44px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(180deg, #086fff, #0557ea);
    border: 0;
    border-radius: 7px;
    box-shadow: 0 12px 26px rgba(8, 104, 245, .2);
    cursor: pointer;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: #7a879c;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: #dce5f1;
}

.auth-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-socials button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 44px;
    color: #172641;
    font-weight: 700;
    background: #fff;
    border: 1px solid #d6e0ee;
    border-radius: 8px;
}

.auth-socials .fa-google {
    color: #1a73e8;
}

.auth-socials .fa-vk {
    color: #0877ff;
}

.auth-switch {
    text-align: center;
}

.auth-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    width: min(100%, 760px);
    margin: 0 auto;
}

.auth-bottom article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.auth-bottom i {
    font-size: 22px;
}

.auth-bottom strong {
    display: block;
    margin: 4px 0 4px;
    font-size: 14px;
}

.auth-bottom p {
    margin: 0;
    color: #53627c;
    font-size: 13px;
    line-height: 1.4;
}

.panel-dashboard {
    min-height: 100vh;
    background: #f5f9ff;
}

.dashboard-stub {
    display: grid;
    align-content: start;
    gap: 90px;
    min-height: 100vh;
    padding: 34px 56px;
}

.dashboard-stub section {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 46px;
    text-align: center;
    background: #fff;
    border: 1px solid #dce5f1;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15, 40, 82, .12);
}

.dashboard-eyebrow {
    margin: 0 0 10px;
    color: var(--panel-blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-stub h1 {
    margin: 0 0 14px;
    font-size: 40px;
}

.dashboard-stub p {
    margin: 0 auto 26px;
    max-width: 560px;
    color: #53627c;
    line-height: 1.55;
}

.dashboard-stub button {
    min-width: 150px;
    height: 44px;
    color: #fff;
    font-weight: 800;
    background: var(--panel-blue);
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

@media (max-width: 1180px) {
    .auth-shell {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .auth-hero {
        display: none;
    }

    .auth-hero::after {
        display: none;
    }

    .auth-bottom {
        display: none;
    }

    .auth-main {
        min-height: 100dvh;
        padding: 18px;
        overflow: visible;
    }
}

@media (max-width: 820px) {
    .auth-card {
        padding: 20px 18px;
    }

    .auth-tabs {
        grid-template-columns: 1fr;
    }

    .auth-form--register {
        padding-top: 0;
        border-top: 0;
    }

    .auth-tabs a {
        justify-content: flex-start;
    }
}

@media (max-height: 820px) and (min-width: 1181px) {
    .auth-bottom {
        display: none;
    }

    .auth-main {
        gap: 0;
        padding-top: 22px;
        padding-bottom: 22px;
    }
}

@media (max-height: 760px) and (min-width: 1181px) {
    .auth-security,
    .auth-copy {
        display: none;
    }

    .auth-benefits {
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .auth-main,
    .dashboard-stub {
        padding: 18px;
    }

    .auth-hero__text h1,
    .dashboard-stub h1 {
        font-size: 32px;
    }

    .auth-socials,
    .auth-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }
}
