* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    display: block;
    font-family: "DM Sans", sans-serif;
}

html {
    height: 100%;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #ECF0F5;
    min-height: 100%;
    overflow-y: auto;
}

body.in-iframe {
    background: white;
}

body.in-iframe .login-form {
    padding: 0;
}

main {
    padding: 50px;
    align-self: stretch;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr minmax(min-content, 580px);
    grid-template-rows: 1fr auto 1fr;
    grid-column-gap: 64px;
    grid-row-gap: 20px;
    place-items: center;
    width: 100%;
    height: 100%;
    background-color: black;
    background-image: url("default-background.png");
    background-position: center;
    background-size: cover;
    position: relative;
}

main.nocopy .login-form, main.nocopy .verification-form, main.nocopy .sign-up-form, main.nocopy .logo {
    grid-column-start: 1;
    grid-column-end: 3;
}

main:not(.nocopy)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.00) 100%) 0 0 / 50% 100% no-repeat;
}

main > * {
    z-index: 0;
}

.logo {
    height: 88px;
    place-self: start ;
}

main.nocopy .logo {
    place-self: center;
}

.welcome-text {
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    text-shadow: 1px 1px 5px #555;
    grid-column: 1;
    grid-row: 2;
}

.welcome-text h1 {
    color: inherit;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: 68px; /* 141.667% */
    margin: 0 0 14px;
}

.welcome-text p {
    color: #FFF;
    font-size: 26px;
    font-style: normal;
    font-weight: 400;
    line-height: 44px; /* 169.231% */
    margin: 0;
}

:host {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    opacity: 1;
    padding: 0;
    margin: 0;
    background: white;
}

h1 {
    margin: 15px 0 10px;
    color: #000;
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    align-self: flex-start;
}

h2 {
    color: #000;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
    align-self: flex-start;
    margin: 0 0 24px;
}

h3 {
    color: #5B6E7C;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0 0 8px;
    align-self: flex-start;
}

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

label {
    color: #5B6E7C;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.error {
    margin: 10px 0 0;
    color: #CB0000;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
}

.error .material-symbols-outlined {
    margin-right: 10px;
    font-size: 20px;
}

.notice {
    margin: 10px;
    color: #257DAA;
    font-size: 14px;
}


.button-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
    gap: 24px;
    align-self: stretch;
}

.verification-form input[type="number"] {
    -moz-appearance:textfield;
    padding: 4px 0px 4px 6px;
    width: 40px;
    border-radius: 4px;
    border: 1px solid #DCE0F0;
    background: #FAFCFF;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 44px;
    letter-spacing: 8px;
}

.verification-form input[type="number"]::-webkit-outer-spin-button,
.verification-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.back-link {
    color: #257DAA;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px; /* 187.5% */
}

.verification-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.login-link {
    display: flex;
    align-items: center;
    color: inherit;
    padding: 8px 16px;
    border-radius: 4px;
    align-self: stretch;
    border: 1px solid #DCE0F0;
    background: #FAFCFF;
    margin-bottom: 10px;
    font-style: normal;
}

.login-link.expired {
    opacity: 0.9;
    font-style: italic;
}

.login-link:hover {
    background: #DCE0F0;
}

.portrait {
    width: 42px;
    height: 42px;
    border-radius: 100%;
    margin-right: 10px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.login-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.login-info .full-name {
    color: #222;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px; /* 150% */
}

.login-info .email {
    color: #222;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px; /* 150% */
}

.logout-link {
    margin: 14px 0;
    color: #222;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 200% */
    text-decoration: none;
}

.separator-or {
    display: flex;
    padding: 10px 0;
    align-items: center;
    align-self: stretch;
    color: #000;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 157.143% */
    margin-bottom: 10px;
}

.separator-or::before {
    content: "";
    flex: 1;
    border-bottom: 1px solid #E6ECF2;
    margin-right: 16px;
}

.separator-or::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #E6ECF2;
    margin-left: 16px;
}

.alternative-login {
    display: flex;
    gap: 10px;
    align-self: stretch;
    align-items: stretch;
}

.alternative-login > * {
    flex: 1;
    min-width: 50px;
}

.alternative-login .new-login-button {
    display: flex;
    padding: 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    border: 1px solid #E0E0E9;
    color: #222;
    font-feature-settings: 'clig' off, 'liga' off;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 142.857% */
}

.alternative-login .new-login-button .material-symbols-outlined {
    font-size: 20px;
}

.google-login {
    display: flex;
    padding: 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
    border-radius: 4px;
    border: 1px solid #E0E0E9;
    color: #222;
    font-feature-settings: 'clig' off, 'liga' off;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 142.857% */
}

.login-form .google-login {
    width: 100%;
    max-width: 250px;
}

.alternative-login .google-login .google-logo {
    height: 18px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    margin-bottom: 10px;
    position: relative;
}

.input-wrapper .text-input {
    margin-bottom: 0;
}

.input-wrapper.has-error .text-input {
    border-color: #CB0000;
}

.text-input {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-radius: 4px;
    border: 1px solid #DCE0F0;
    background: #FAFCFF;
    padding: 17px 16px;
    align-self: stretch;
    margin-bottom: 10px;
}

.text-input:focus {
    border-color: #0075FF;
    background: #FAFCFF;
    outline: none;
    box-shadow: 0px 0px 6px 1px rgba(0, 117, 255, 0.25);
}

.sign-up-link, .resend-link {
    color: #222;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px; /* 200% */
    margin-bottom: 14px;
}

.sign-up-link a, .resend-link button {
    color: #257DAA;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    display: inline;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
}

.resend-link button[disabled] {
    opacity: 0.5;
    cursor: default;
}

.email-submit {
    position: absolute;
    right: 16px;
    top: calc(50% - 18px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 200px;
    width: 36px;
    height: 36px;
    background: #257DAA;
    border: none;
    color: white;
    cursor: pointer;
}

.email-submit[disabled] {
    opacity: 0.5;
    cursor: default;
}

.verification-form input[type="submit"], .sign-up-form button[type="submit"] {
    display: flex;
    width: 112px;
    padding: 10px 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    background: #257DAA;
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px; /* 187.5% */
    border: none;
    align-self: flex-end;
    cursor: pointer;
}

.verification-form input[type="submit"][disabled], .sign-up-form button[type="submit"][disabled] {
    opacity: 0.5;
    cursor: default;
}

.verification-form p {
    margin-bottom: 10px;
}

.email-submit:hover:not([disabled]), .verification-form input[type="submit"]:hover, .sign-up-form button[type="submit"]:hover {
    background: #1E6C95;
}

.login-form, .verification-form, .sign-up-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: 2;
    grid-row: 2;
    background: white;
    padding: 40px;
    border-radius: 12px;
    min-width: 300px;
    max-width: 580px;
}

.go-back-form button {
    margin-top: 40px;
    border: none;
    border-radius: 4px;
    background: none;
    color: black;
    font-size: 16px;
    padding: 10px;
    cursor: pointer;
}

.input-group {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sign-up-form {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    align-items: center;
    gap: 14px;
    justify-self: stretch;
}

.passkey-option {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 20px 60px;
}

.fingerprint-icon {
    color: #f91c48;
}


@media screen and (orientation: portrait) and (max-width: 799px),
screen and (orientation: landscape) and (max-height: 500px) {
    main {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .welcome-text {
        display: none;
    }

    .login-form, .verification-form, .sign-up-form {
        grid-column: 1;
    }

    .passkey-option {
        margin: 20px 0;
    }
}