html,
body {
    min-height: 100%;
}

.tpa-login-page {
    margin: 0;
    background: #f0f0f0;
    color: #000;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

    .tpa-login-page form {
        min-height: 100vh;
    }

.tpa-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 49.7%) minmax(420px, 50.3%);
    min-height: 100vh;
    background: #f0f0f0;
}

.tpa-login-visual {
    min-height: 100vh;
    background: url("../Members/images/login/tennis-login-bg.png") right center / auto 100% no-repeat;
}

.tpa-login-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}

.tpa-login-panel-inner {
    width: min(520px, calc(100% - 72px));
    margin: 12.3vh auto 32px;
}

.tpa-login-logo-wrap {
    margin-bottom: 15.8vh;
}

.tpa-login-logo {
    display: block;
    width: 520px;
    max-width: 100%;
    height: auto;
}

.tpa-login-form {
    width: min(376px, 100%);
    margin: 0 auto;
}

.tpa-login-title {
    display: block;
    margin-bottom: 29px;
    color: #000;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.32;
}

.tpa-field {
    margin-bottom: 18px;
}

.tpa-field-label {
    display: block;
    margin-bottom: 2px;
    color: #9d9d9d;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.8px;
    line-height: 2.5;
}

.tpa-field-input {
    box-sizing: border-box;
    width: 100%;
    height: 25px;
    padding: 0 0 6px;
    border: 0;
    border-bottom: 1px solid #c8c8c8;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #000;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
}

    .tpa-field-input:focus {
        border-bottom-color: #630b1a;
    }

.tpa-validator {
    display: block;
    margin-top: 6px;
    color: #b20000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.tpa-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 54px;
}

.tpa-login-button-wrap {
    position: relative;
    display: inline-flex;
    width: 147px;
    height: 41px;
}

.tpa-login-button,
.tpa-cancel-button {
    box-sizing: border-box;
    display: inline-block;
    appearance: none;
    -webkit-appearance: none;
    min-width: 147px;
    height: 41px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 41px;
    text-align: center;
    text-transform: none;
}

.tpa-login-button {
    width: 147px;
    padding: 0 20px;
    background: #630b1a;
}

.tpa-cancel-button {
    background: #630b1a;
}

.tpa-login-button:hover,
.tpa-login-button:focus {
    background-color: #4d0814;
}

.tpa-cancel-button:hover,
.tpa-cancel-button:focus {
    background: #4d0814;
}

.tpa-forgot-link {
    display: block;
    width: max-content;
    margin: 18px auto 0;
    color: #630b1a !important;
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-decoration: none;
}

    .tpa-forgot-link:hover,
    .tpa-forgot-link:focus {
        text-decoration: underline;
    }

.tpa-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: min(500px, calc(100vw - 48px));
    margin: 50px 0 0 50%;
    transform: translateX(-50%);
    padding: 10px 12px;
    border: 1px solid;
    border-left-width: 4px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    white-space: pre-line;
    opacity: 1;
    transition: opacity 220ms ease;
}

.tpa-message.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.tpa-message::before {
    display: inline-flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.tpa-message-error {
    border-color: #e5a4a4;
    border-left-color: #c62828;
    background: #fff4f4;
    color: #8f1d1d;
}

.tpa-message-error::before {
    content: "!";
    background: #c62828;
}

.tpa-message-success {
    border-color: #9ccbab;
    border-left-color: #218739;
    background: #f1faf3;
    color: #216b32;
}

.tpa-message-success::before {
    content: "\2713";
    background: #218739;
}

.tpa-login-footer {
    display: flex;
    align-items: center;
    gap: 46px;
    min-height: 56px;
    padding: 0 36px;
    background: #630b1a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

.tpa-footer-link {
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

    .tpa-footer-link:hover,
    .tpa-footer-link:focus {
        text-decoration: underline;
    }

.tpa-footer-copy {
    margin-left: auto;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .tpa-login-shell {
        grid-template-columns: 1fr;
    }

    .tpa-login-visual {
        min-height: 220px;
        background-position: center center;
        background-size: cover;
    }

    .tpa-login-panel {
        min-height: calc(100vh - 220px);
    }

    .tpa-login-panel-inner {
        margin-top: 48px;
        margin-bottom: 48px;
    }

    .tpa-login-logo-wrap {
        margin-bottom: 56px;
    }
}

@media (max-width: 640px) {
    .tpa-login-visual {
        min-height: 180px;
    }

    .tpa-login-panel-inner {
        width: calc(100% - 48px);
        margin-top: 36px;
    }

    .tpa-login-footer {
        flex-wrap: wrap;
        gap: 12px 22px;
        padding: 18px 24px;
    }

    .tpa-footer-copy {
        width: 100%;
        margin-left: 0;
    }
}
