.tb-auth-shell,
.tb-auth-shell * {
    box-sizing: border-box;
}

.tb-auth-shell {
    min-height: min(720px, 100vh);
    display: grid;
    place-items: center;
    padding: 42px 18px;
    background: linear-gradient(180deg, #fbf8f1, #f5faf6);
    color: #17403b;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tb-login-form,
.tb-forgot-password-form,
.tb-reset-password-form {
    width: min(100%, 440px);
    display: grid;
    gap: 18px;
    padding: 34px;
    border: 1px solid #dfe9e4;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 80px rgba(48, 77, 70, 0.12);
}

.tb-auth-brand span {
    color: #6f827b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.tb-auth-brand h2 {
    margin: 8px 0 0;
    color: #17403b;
    font-size: 34px;
    line-height: 1.08;
}

.tb-auth-brand p {
    margin: 12px 0 0;
    color: #657970;
    font-size: 15px;
    line-height: 1.6;
}

.tb-auth-shell label {
    display: grid;
    gap: 8px;
}

.tb-auth-shell label span {
    color: #60766e;
    font-size: 13px;
    font-weight: 720;
}

.tb-auth-shell input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid #d9e5df;
    border-radius: 14px;
    background: #ffffff;
    color: #233834;
    font-size: 15px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.tb-auth-shell input:focus {
    border-color: #8db79b;
    box-shadow: 0 0 0 4px rgba(141, 183, 155, 0.18);
}

.tb-auth-shell button {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: #17403b;
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 780;
    box-shadow: 0 16px 34px rgba(95, 143, 103, 0.22);
    transition: background 150ms ease, transform 150ms ease;
}

.tb-auth-shell button:hover {
    background: #0f312d;
    transform: translateY(-1px);
}

.tb-auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a8f88;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.tb-auth-divider::before,
.tb-auth-divider::after {
    display: block;
    flex: 1;
    height: 1px;
    background: #dfe9e4;
    content: "";
}

.tb-auth-divider span {
    padding: 0 10px;
    white-space: nowrap;
}

.tb-google-auth-button {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #d9e5df;
    border-radius: 14px;
    background: #ffffff;
    color: #233834;
    box-shadow: 0 12px 26px rgba(48, 77, 70, 0.08);
    font-size: 15px;
    font-weight: 780;
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.tb-google-auth-button:hover {
    border-color: #b9cbc4;
    box-shadow: 0 16px 34px rgba(48, 77, 70, 0.12);
    color: #17403b;
    transform: translateY(-1px);
}

.tb-google-auth-button .tb-google-auth-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5ece8;
    border-radius: 50%;
    color: #1a73e8;
    font-family: Arial, sans-serif;
    font-weight: 800;
}

.tb-google-auth-button .tb-google-auth-label {
    color: inherit;
}

.tb-password-field {
    position: relative;
    display: block !important;
}

.tb-password-field input {
    padding-right: 58px;
}

.tb-auth-shell .tb-password-toggle {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid #d9e5df;
    border-radius: 10px;
    background: #f7fbf8;
    color: #17403b;
    box-shadow: none;
    font-size: 13px;
}

.tb-auth-shell .tb-password-toggle span,
.tb-auth-shell .tb-password-toggle span::before,
.tb-auth-shell .tb-password-toggle span::after {
    position: absolute;
    display: block;
    content: "";
}

.tb-auth-shell .tb-password-toggle span {
    left: 9px;
    top: 13px;
    width: 20px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 20px / 14px;
}

.tb-auth-shell .tb-password-toggle span::before {
    left: 5px;
    top: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.tb-auth-shell .tb-password-toggle span::after {
    display: none;
}

.tb-auth-shell .tb-password-toggle.is-visible span::after {
    display: block;
    left: -3px;
    top: 4px;
    width: 25px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transform: rotate(-35deg);
}

.tb-auth-shell .tb-password-toggle:hover {
    background: #e8f2ee;
    color: #17403b;
    transform: none;
}

.tb-remember-field {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
}

.tb-remember-field input {
    width: 20px;
    min-height: 20px;
    accent-color: #17403b;
}

.tb-auth-shell .tb-remember-field span {
    color: #17403b;
    font-size: 15px;
    font-weight: 760;
}

.tb-auth-alert {
    padding: 12px 14px;
    border: 1px solid #f0d5d5;
    border-radius: 14px;
    background: #fff6f4;
    color: #9a514d;
    font-size: 14px;
    font-weight: 650;
}

.tb-auth-alert.success {
    border-color: #d8eadb;
    background: #f3fbf5;
    color: #4f7f58;
}

.tb-auth-links {
    text-align: center;
}

.tb-auth-links a {
    color: #4f7f58;
    font-size: 14px;
    font-weight: 720;
    text-decoration: none;
}

.tb-auth-links a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .tb-login-form,
    .tb-forgot-password-form,
    .tb-reset-password-form {
        padding: 26px 20px;
        border-radius: 20px;
    }
}
