:root {
    --bg: #192126;
    --panel: #1a2227;
    --green: #1ed891;
    --green-deep: #17483c;
    --muted: #9da8b1;
    --blue: #1689ff;
    --orange: #ff9d24;
    --text: #fff;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.material-symbols-rounded {
    font-size: inherit;
    line-height: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(400px, 1fr) minmax(440px, .9fr);
}

.product-panel {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: var(--green-deep);
}

.product-inner {
    width: min(720px, 100%);
}

.product-inner h1 {
    margin: 0 0 14px;
    text-align: center;
    font-size: 30px;
    line-height: 1.18;
    font-weight: 800;
}

.product-inner h1 span {
    color: var(--blue);
}

.product-inner h1 strong {
    color: var(--orange);
}

.product-card {
    width: 100%;
    min-height: 82px;
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    padding: 16px 24px;
    border-radius: 7px;
    background: var(--panel);
    box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
    overflow: hidden;
}

.product-card > .material-symbols-rounded {
    color: var(--green);
    font-size: 28px;
}

.product-card > div {
    min-width: 0;
    overflow: hidden;
}

.product-card h2 {
    margin: 0 0 4px;
    font-size: 19px;
    line-height: 1;
    font-weight: 700;
}

.product-card h2 span {
    color: var(--blue);
}

.product-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.product-card h2,
.product-card p {
    overflow-wrap: anywhere;
    white-space: normal;
}

.auth-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 24px;
    background: var(--bg);
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(360px, 100%);
}

.login-brand-logo {
    position: relative;
    width: min(340px, 100%);
    height: 78px;
    overflow: hidden;
    display: block;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.login-brand-logo img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 330%;
    height: 330%;
    object-fit: contain;
    transform: translate(-50%, -50%);
}

.login-brand-mark {
    position: relative;
    width: 78px;
    height: 48px;
}

.login-brand-mark span {
    position: absolute;
    left: 6px;
    top: -6px;
    color: #ffd000;
    font-size: 56px;
    line-height: 1;
    font-weight: 900;
    font-style: italic;
    text-shadow: 15px 0 #1689ff, -10px 0 #ff4b24;
    transform: skew(-10deg);
}

.login-brand-mark i {
    position: absolute;
    left: 31px;
    top: 25px;
    width: 14px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid #102126;
}

.login-brand-text {
    display: flex;
    flex-direction: column;
    color: var(--blue);
    font-size: 20px;
    line-height: 1;
}

.login-brand-text strong {
    color: #ffd000;
    font-size: 21px;
    font-weight: 800;
}

.login-card {
    width: min(440px, 100%);
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 26px 28px;
    border: 2px solid var(--green);
    border-radius: 10px;
    color: #fff;
    animation: authCardIn .32s ease-out both;
    transform-origin: center;
    transition: opacity .17s ease, transform .17s ease, border-color .17s ease;
}

.login-card.is-switching {
    opacity: 0;
    transform: translateY(10px) scale(.985);
    border-color: rgba(30, 216, 145, .35);
}

.login-card h2 {
    margin: 0 0 14px;
    text-align: center;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800;
}

.signup-card h2 {
    font-size: 24px;
}

.google-login {
    height: 40px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #aeb9c2;
    border-radius: 3px;
    background: #fff;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    white-space: normal;
}

.google-login span {
    font-weight: 800;
}

.login-card p {
    margin: 18px 0 14px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.login-card input,
.login-card select {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 5px;
    outline: 0;
    background: #11171b;
    color: #fff;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 700;
}

.login-card select {
    appearance: auto;
    cursor: pointer;
}

.login-card select option {
    background: #11171b;
    color: #fff;
}

.login-card input::placeholder {
    color: #9da8b1;
    opacity: 1;
}

.login-card input:user-invalid {
    box-shadow: inset 0 0 0 1px #ff5c72;
}

.login-card input:user-valid {
    box-shadow: inset 0 0 0 1px rgba(30, 216, 145, .4);
}

.form-field {
    display: block;
}

.form-field + .form-field,
.form-field + .phone-field,
.phone-field + .form-field {
    margin-top: 8px;
}

.phone-field {
    display: grid;
    grid-template-columns: 66px 1fr;
    margin-top: 8px;
    border-radius: 5px;
    background: #11171b;
}

.phone-field input {
    border-radius: 0 5px 5px 0;
}

.country-code {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid #2c3840;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.country-code span {
    width: 30px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 2px;
    background: linear-gradient(#ff9933 0 33%, #fff 33% 66%, #138808 66%);
    color: #1d3557;
    font-size: 10px;
    line-height: 1;
}

.country-code i {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #c0c7cd;
}

.password-field {
    position: relative;
    display: block;
    margin-top: 10px;
}

.signup-card .password-field {
    margin-top: 8px;
}

.password-field button {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #9da8b1;
    font-size: 19px;
    transform: translateY(-50%);
}

.password-field input {
    padding-right: 48px;
}

.forgot-link {
    align-self: flex-end;
    margin: 6px 0 14px;
    color: #c0c7cd;
    font-size: 12px;
    font-weight: 800;
}

.login-submit {
    height: 40px;
    margin-top: 0;
    border: 0;
    border-radius: 5px;
    background: var(--green);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.signup-card .login-submit {
    margin-top: 10px;
}

.form-message {
    min-height: 18px;
    margin-top: 10px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.form-message.is-error {
    color: #ff6f82;
}

.form-message.is-success {
    color: var(--green);
}

.signup-copy {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.signup-copy a {
    color: var(--green);
    font-weight: 800;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-card {
        animation: none;
        transition: none;
    }

    .login-card.is-switching {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .product-panel,
    .auth-panel {
        padding: 34px 18px;
    }
}

@media (max-width: 620px) {
    body {
        overflow-x: hidden;
    }

    .login-page,
    .product-panel,
    .auth-panel,
    .product-inner,
    .login-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .login-page {
        display: block;
    }

    .product-inner,
    .login-card {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        margin-left: auto;
        margin-right: auto;
    }

    .product-inner h1 {
        font-size: 25px;
    }

    .product-card {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
        padding: 14px 12px;
    }

    .product-card > div {
        overflow: visible;
    }

    .product-card h2 {
        font-size: 16px;
    }

    .product-card p,
    .login-card p,
    .signup-copy {
        font-size: 12px;
    }

    .product-card p {
        max-width: 28ch;
    }

    .login-card p,
    .signup-copy {
        max-width: 30ch;
        margin-left: auto;
        margin-right: auto;
        overflow-wrap: anywhere;
    }

    .login-card input {
        font-size: 15px;
    }

    .login-card {
        padding: 26px 20px 30px;
    }

    .signup-card h2 {
        font-size: 25px;
    }

    .phone-field {
        grid-template-columns: 66px 1fr;
    }
}

@media (max-width: 420px) {
    .product-panel,
    .auth-panel {
        padding: 24px 10px;
    }

    .product-inner,
    .login-card {
        width: 100%;
        max-width: 100%;
    }

    .product-card {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 10px;
        padding: 13px 12px;
    }

    .product-card > div {
        overflow: visible;
    }

    .product-card h2 {
        font-size: 15px;
    }

    .product-card p {
        font-size: 12px;
        line-height: 1.3;
    }

    .login-brand,
    .login-brand-logo {
        width: 100%;
    }

    .login-brand-logo {
        height: 82px;
    }

    .login-brand-logo img {
        width: 300%;
        height: 300%;
    }

    .google-login,
    .login-btn {
        font-size: 14px;
    }
}
