.tw-login-body {
    min-height: 100vh;
    overflow: auto;
    background: #f4f5f7;
}

.tw-login-embedded .tw-login-body {
    background: #f6f7fb;
}

.tw-login-embedded .tw-login-page {
    min-height: 100vh;
    padding: 22px;
}

.tw-login-embedded .tw-login-shell {
    grid-template-columns: minmax(260px, 38%) minmax(360px, 62%);
    width: min(100%, 880px);
    min-height: min(650px, calc(100vh - 44px));
}

.tw-login-embedded .tw-login-intro {
    padding: 36px;
}

.tw-login-embedded .tw-login-panel {
    padding: 42px 54px;
}

.tw-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.tw-login-shell {
    display: grid;
    grid-template-columns: minmax(320px, 46%) minmax(400px, 54%);
    width: min(100%, 1000px);
    min-height: 690px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 14px;
}

.tw-login-intro {
    display: flex;
    flex-direction: column;
    padding: 48px;
    color: #1d2733;
    background: #f0f2f5;
    border-right: 1px solid #e1e4e8;
}

.tw-login-brand img {
    display: block;
    width: auto;
    max-width: 202px;
    max-height: 52px;
    object-fit: contain;
}

.tw-login-brand strong {
    display: block;
    max-width: 260px;
    color: #1d2733;
    font-size: 21px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.035em;
}

.tw-login-product {
    margin: auto 0;
}

.tw-login-product p,
.tw-login-eyebrow {
    margin: 0 0 12px;
    color: var(--tw-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
}

.tw-login-product h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 4.4vw, 54px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.tw-login-product span {
    display: block;
    max-width: 290px;
    color: #64707d;
    font-size: 14px;
    line-height: 1.7;
}

.tw-login-intro > small {
    color: #89929c;
    font-size: 10px;
    letter-spacing: .06em;
}

.tw-login-panel {
    display: grid;
    place-items: center;
    padding: 56px 72px;
}

.tw-login-form-wrap {
    width: min(100%, 370px);
}

.tw-login-panel h2 {
    margin: 0;
    color: #18212b;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.035em;
}

.tw-login-description {
    margin: 9px 0 32px;
    color: #79838e;
    font-size: 13px;
}

.tw-login-field {
    display: block;
    margin-top: 17px;
}

.tw-login-field > span {
    display: block;
    margin-bottom: 7px;
    color: #404b57;
    font-size: 12px;
    font-weight: 600;
}

.tw-login-field > div {
    position: relative;
}

.tw-login-field i {
    position: absolute;
    top: 50%;
    left: 15px;
    translate: 0 -50%;
    color: #98a1aa;
    font-size: 14px;
    pointer-events: none;
}

.tw-login-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    color: #1d2733;
    background: #fff;
    border: 1px solid #cfd5db;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.tw-login-field input::placeholder {
    color: #a2aab3;
}

.tw-login-field input:focus {
    border-color: var(--tw-accent);
    box-shadow: 0 0 0 3px var(--tw-accent-soft);
    outline: none;
}

.tw-login-field input:focus + i,
.tw-login-field div:focus-within i {
    color: var(--tw-accent);
}

.tw-login-corporation .tware-dropdown__control {
    min-height: 48px;
    border-color: #cfd5db;
    border-radius: 9px;
    box-shadow: none;
}

.tw-login-corporation .tware-dropdown__input {
    min-height: 46px !important;
    padding: 0 40px 0 14px !important;
    font-size: 13px !important;
}

.tw-login-corporation .tware-dropdown__toggle {
    height: 46px;
}

.tw-capslock {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    color: var(--tw-danger);
    font-size: 11px;
}

.tw-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0;
    color: #5f6974;
    font-size: 12px;
}

.tw-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
}

.tw-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--tw-accent);
}

.tw-login-submit {
    width: 100%;
    height: 48px;
    color: #fff;
    background: var(--tw-accent);
    border: 1px solid var(--tw-accent);
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.tw-login-submit:hover {
    background: var(--tw-accent-hover);
    border-color: var(--tw-accent-hover);
}

.tw-login-submit:disabled {
    cursor: wait;
    opacity: .68;
}

.tw-security-challenge {
    margin-top: 17px;
    padding: 15px;
    background: #f6f7f9;
    border: 1px solid #d7dce1;
    border-radius: 9px;
}

.tw-security-challenge-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.tw-security-challenge-heading strong,
.tw-security-challenge-heading span {
    display: block;
}

.tw-security-challenge-heading strong {
    color: #2d3945;
    font-size: 12px;
}

.tw-security-challenge-heading span {
    margin-top: 3px;
    color: #7b8691;
    font-size: 10px;
}

.tw-security-challenge-heading button {
    width: 30px;
    height: 30px;
    color: #596672;
    background: #fff;
    border: 1px solid #cfd5db;
    border-radius: 7px;
    cursor: pointer;
}

.tw-security-challenge > img {
    display: block;
    width: 100%;
    height: 76px;
    object-fit: cover;
    background: #fff;
    border: 1px solid #d7dce1;
    border-radius: 7px;
}

.tw-security-answer {
    margin-top: 10px;
}

.tw-login-security,
.tw-login-error {
    min-height: 17px;
    margin: 9px 0 0;
    font-size: 11px;
    text-align: center;
}

.tw-login-security {
    color: #71808e;
}

.tw-login-error {
    color: var(--tw-danger);
}

.tw-login-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #eceef0;
    color: #89929c;
    font-size: 11px;
}

.tw-login-help > div {
    display: flex;
    gap: 7px;
    white-space: nowrap;
}

.tw-login-help a {
    color: #53606d;
    font-weight: 600;
    text-decoration: none;
}

.tw-login-help a:hover {
    color: var(--tw-accent);
}

.tw-recovery-wrap .tw-login-description {
    margin-bottom: 24px;
}

.tw-recovery-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 30px;
    color: #6e7984;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.tw-recovery-back:hover {
    color: var(--tw-accent);
}

.tw-recovery-secondary {
    width: 100%;
    height: 42px;
    margin-top: 13px;
    color: #34414e;
    background: #f5f6f8;
    border: 1px solid #cfd5db;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

.tw-recovery-secondary:hover {
    background: #eceff2;
}

.tw-recovery-wrap .tw-login-submit {
    margin-top: 20px;
}

.tw-login-field em {
    float: right;
    color: var(--tw-accent);
    font-size: 11px;
    font-style: normal;
}

.tw-recovery-message {
    min-height: 18px;
    margin: 10px 0 0;
    color: var(--tw-danger);
    font-size: 11px;
    text-align: center;
}

.tw-recovery-message.is-success {
    color: #2f7d52;
}

.tw-login-honeypot {
    position: fixed !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 820px) {
    .tw-login-page {
        padding: 20px;
    }

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

    .tw-login-intro {
        min-height: 180px;
        padding: 26px 30px;
        border-right: 0;
        border-bottom: 1px solid #e1e4e8;
    }

    .tw-login-product {
        margin: 30px 0 0;
    }

    .tw-login-product p,
    .tw-login-product span,
    .tw-login-intro > small {
        display: none;
    }

    .tw-login-product h1 {
        margin: 0;
        font-size: 30px;
    }

    .tw-login-panel {
        padding: 42px 36px 36px;
    }
}

@media (max-width: 480px) {
    .tw-login-page {
        display: block;
        padding: 0;
        background: #fff;
    }

    .tw-login-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .tw-login-intro {
        min-height: 150px;
        padding: 24px;
    }

    .tw-login-brand img {
        max-width: 170px;
        max-height: 42px;
    }

    .tw-login-panel {
        align-items: start;
        padding: 38px 24px 30px;
    }

    .tw-login-help {
        align-items: flex-start;
        flex-direction: column;
    }
}
