* {
    box-sizing: border-box
}

:root {
    font: 16px/1.45 "Google Sans", sans-serif;
    color: #151e2a;
    background: #f7f8fb;
    color-scheme: light
}

body {
    margin: 0
}

a {
    color: #db1328;
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

header {
    height: 68px;
    border-bottom: 1px solid #e1e6ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4.4vw;
    background: #f8f9fb
}

.brand, .home {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: inherit
}

.brand {
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -1.2px
}

.brand i {
    width: 27px;
    height: 36px;
    background: linear-gradient(135deg, #ff3044, #c90718);
    clip-path: polygon(70% 0, 55% 40%, 100% 40%, 30% 100%, 43% 57%, 0 57%)
}

.home span {
    color: #ec152b;
    font-size: 23px
}

main {
    display: grid;
    grid-template-columns:50% 50%;
    min-height: calc(100svh - 68px)
}

.register main {
    grid-template-columns:53.2% 46.8%
}

aside {
    position: relative;
    background: #edf0f4;
    overflow: hidden
}

aside img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

section {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.login section {
    padding: 18px 1.6vw 8px
}

.card {
    flex: 1;
    display: grid;
    align-items: center;
    background: #fff;
    padding: clamp(25px, 4vw, 65px) 0
}

.login .card {
    border: 1px solid #dce2eb;
    border-radius: 22px
}

.inner {
    width: 80%;
    max-width: 570px;
    margin: auto
}

.register section {
    background: white
}

.register .inner {
    width: 78%
}

h1, .intro, .switch {
    margin: 0
}

.login h1, .login .intro {
    text-align: center
}

h1 {
    font-size: clamp(32px, 2.8vw, 44px);
    letter-spacing: -1.6px;
    line-height: 1.12
}

.intro {
    color: #738095;
    font-size: clamp(17px, 1.5vw, 24px);
    margin: 6px 0 30px
}

form {
    display: grid;
    gap: 18px
}

fieldset, .google, input:not([type=radio],[type=checkbox]) {
    border: 1px solid #d1d9e5;
    border-radius: 10px;
    background: white
}

fieldset {
    padding: 0;
    margin: 0;
    display: flex
}

.role {
    position: relative;
    flex: 1
}

.role input, .sr {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0
}

.role span, .google {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    height: 54px;
    font-weight: 600
}

.role span {
    border-radius: 9px;
    cursor: pointer
}

.role input:checked + span {
    background: #fff1f2;
    color: #e30c21;
    outline: 1px solid #ff9ba4
}

.role input:focus-visible + span {
    outline: 2px solid #172d53
}

svg {
    width: 23px;
    height: 23px
}

.role svg, .pw svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6
}

.google {
    color: #131c28
}

.google:hover {
    background: #f8faff;
    text-decoration: none
}

.google svg {
    width: 27px;
    height: 27px
}

.divider {
    display: flex;
    gap: 14px;
    align-items: center;
    color: #758198;
    font-size: 15px
}

.divider:before, .divider:after {
    content: '';
    height: 1px;
    background: #dce2eb;
    flex: 1
}

label {
    font-weight: 600
}

input:not([type=radio],[type=checkbox]) {
    width: 100%;
    display: block;
    height: 50px;
    margin: 4px 0 0;
    padding: 0 16px;
    font: inherit;
    font-weight: 400;
    color: inherit
}

input::placeholder {
    color: #929db0
}

.pw {
    position: relative
}

.pw input {
    padding-right: 48px !important
}

.pw button {
    position: absolute;
    right: 4px;
    top: 0;
    height: 100%;
    width: 43px;
    border: 0;
    background: none;
    color: #69788d;
    cursor: pointer
}

.options {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap
}

.options label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px
}

input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: #df192d
}

.submit {
    background: #eb1c30;
    color: white;
    border: 0;
    border-radius: 10px;
    height: 56px;
    font: inherit;
    font-weight: 700;
    font-size: 19px;
    cursor: pointer
}

.submit:hover {
    background: #cf1426
}

.switch {
    text-align: center;
    color: #536176;
    margin-top: 24px
}

.switch a {
    font-weight: 500
}

footer {
    text-align: center;
    color: #738095;
    font-size: 13px;
    padding: 8px
}

.register footer {
    padding-bottom: 20px
}

.errors {
    color: #af1227
}

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid #3567a7;
    outline-offset: 2px
}

@media (max-width: 820px) {
    main, .register main {
        grid-template-columns:1fr
    }

    aside {
        display: none
    }

    header {
        height: 60px;
        padding: 0 5vw
    }

    .brand {
        font-size: 24px
    }

    main {
        min-height: calc(100svh - 60px)
    }

    .login section {
        padding: 16px
    }

    .inner, .register .inner {
        width: min(88%, 540px)
    }

    .card {
        padding: 36px 0
    }

    .intro {
        margin-bottom: 24px
    }
}
