* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: clamp(24px, 6vh, 84px) clamp(18px, 7vw, 128px);
    color: #0f172a;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at calc(100% - 80px) -36px, #ffc400 0 184px, transparent 186px),
        radial-gradient(circle at calc(100% - 40px) calc(100% - 34px), transparent 0 214px, #ffc400 216px 242px, transparent 244px),
        linear-gradient(90deg, #e6a800 0 50%, #f3f5f9 50% 100%);
}

a {
    color: #0f172a;
    font-weight: 800;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
    width: min(100%, 1600px);
    min-height: min(78vh, 900px);
    overflow: hidden;
    border-radius: 14px;
    background: #f3f5f9;
    box-shadow: 0 16px 26px rgba(15, 23, 42, .22);
}

.login-hero {
    position: relative;
    display: flex;
    min-height: 680px;
    overflow: hidden;
    background: #ffc400;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 0, #ffffff 0 58px, transparent 60px),
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .85) 0 14px, transparent 15px),
        radial-gradient(circle at 16% 84%, #ff7a00 0 26px, transparent 27px),
        radial-gradient(circle at 91% 89%, #ff7a00 0 24px, transparent 25px),
        radial-gradient(circle at 76% 15%, transparent 0 22px, rgba(255, 255, 255, .9) 23px 26px, transparent 27px),
        radial-gradient(circle at 62% 100%, #ffffff 0 84px, transparent 86px),
        radial-gradient(circle at 62% 100%, transparent 0 128px, rgba(255, 255, 255, .9) 130px 136px, transparent 138px);
}

.hero-pattern::before,
.hero-pattern::after {
    position: absolute;
    width: 200px;
    height: 116px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .9) 0 2px, transparent 2.5px);
    background-size: 28px 24px;
    content: "";
}

.hero-pattern::before {
    top: 132px;
    left: 52px;
}

.hero-pattern::after {
    left: 78px;
    bottom: 72px;
    width: 110px;
    height: 88px;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: clamp(52px, 8vw, 118px) clamp(48px, 10vw, 150px);
}

.hero-logo {
    width: min(100%, 470px);
    height: auto;
    margin-top: 50px;
    margin-bottom: 50px;
    filter: brightness(0) invert(1);
}

.hero-copy {
    max-width: 620px;
}

.hero-kicker {
    margin: 0 0 22px;
    color: #101010;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 900;
    line-height: 1;
}

.hero-copy h1 {
    max-width: 590px;
    margin: 0 0 22px;
    color: #101010;
    font-size: clamp(30px, 3.5vw, 54px);
    font-weight: 900;
    line-height: 1.08;
}

.hero-copy p:not(.hero-kicker) {
    max-width: 600px;
    margin: 0;
    color: rgba(16, 16, 16, .72);
    font-size: clamp(16px, 1.25vw, 21px);
    font-weight: 500;
    line-height: 1.55;
}

.login-panel-wrap {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 680px;
    padding: clamp(42px, 6vw, 86px);
    background: #f4f5fa;
}

.login-panel-wrap::before {
    position: absolute;
    top: -146px;
    right: -144px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #ffffff;
    content: "";
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    margin: 0 auto;
}

.card-heading {
    margin-bottom: 42px;
    text-align: center;
}



.card-logo {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0 auto 22px;
    border-radius: 14px;
    background: #ffc400;
    box-shadow: 0 8px 16px rgba(15, 23, 42, .14);
}

.card-heading h2 {
    margin: 0 0 10px;
    color: #151515;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.15;
}

.card-heading p {
    margin: 0;
    color: #475569;
    font-size: 16px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    margin-bottom: 12px;
    color: #151515;
    font-size: 17px;
    font-weight: 500;
}

.input-wrap {
    position: relative;
}

.input-wrap > span,
.password-toggle {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    color: #101010;
    transform: translateY(-50%);
}

.input-wrap > span {
    left: 18px;
    width: 20px;
    height: 20px;
}

.input-wrap svg,
.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.form-control {
    height: 68px;
    padding: 14px 58px;
    border: 0;
    border-radius: 5px;
    color: #202020;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(21, 21, 21, .16);
    font-size: 16px;
    font-weight: 500;
}

.form-control:focus {
    border-color: transparent;
    box-shadow: 0 0 0 .18rem rgba(255, 196, 0, .26), 0 3px 10px rgba(21, 21, 21, .16);
}

.form-control::placeholder {
    color: #a8aeb8;
}

.password-toggle {
    right: 18px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 42px;
    color: #171717;
    font-size: 16px;
}

.custom-control-label {
    cursor: pointer;
}

.custom-control-label::before {
    border: 0;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(21, 21, 21, .16);
}

.custom-control-input:checked ~ .custom-control-label::before {
    border-color: #ffc400;
    background-color: #ffc400;
}

.btn-towgo {
    height: 66px;
    border: 0;
    border-radius: 5px;
    color: #101010;
    background: #ffc400;
    box-shadow: 0 8px 16px rgba(178, 132, 0, .24);
    font-size: 20px;
    font-weight: 800;
}

.btn-towgo:hover,
.btn-towgo:focus {
    color: #101010;
    background: #ffb800;
}

.divider {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 28px 0 24px;
    color: #151515;
    font-size: 18px;
}

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

.social-login-row {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.social-login-row .btn {
    display: grid;
    place-items: center;
    width: 88px;
    height: 56px;
    border: 0;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 3px 9px rgba(21, 21, 21, .14);
    color: #101010;
    font-size: 18px;
    font-weight: 900;
}

.btn-google {
    color: #4285f4;
}

.btn-facebook {
    color: #3158a6;
    font-family: Arial, sans-serif;
    font-size: 28px;
}

.create-account {
    margin: 24px 0 0;
    color: #181818;
    font-size: 17px;
    text-align: center;
}

.invalid-feedback {
    margin-top: 8px;
    font-size: 12px;
}

@media (max-width: 1100px) {
    body {
        padding: 20px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        width: min(100%, 760px);
        min-height: auto;
    }

    .login-hero {
        min-height: auto;
    }

    .hero-content {
        padding: 48px 40px;
    }

    .hero-logo {
        width: min(100%, 360px);
        margin-bottom: 34px;
    }

    .login-panel-wrap {
        min-height: auto;
        padding: 48px 28px;
    }

    .login-panel-wrap::before {
        display: none;
    }
}

@media (max-width: 560px) {
    body {
        padding: 12px;
        background: #ffc400;
    }

    .login-shell {
        border-radius: 12px;
    }

    .hero-content {
        padding: 36px 24px;
    }

    .hero-logo {
        width: min(100%, 260px);
        margin-bottom: 28px;
    }

    .hero-kicker {
        margin-bottom: 14px;
    }

    .login-panel-wrap {
        padding: 36px 20px;
    }

    .card-logo {
        width: 78px;
        height: 78px;
    }

    .form-control {
        height: 58px;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 28px;
    }

    .social-login-row {
        gap: 14px;
    }

    .social-login-row .btn {
        width: 76px;
    }
}
