/**
 * Tamagn Bet — centered sign-up and login floating cards (main site header persists above).
 */

.tb-signup-page,
.tb-login-page {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--tb-header-bar-max, 80px));
    padding: clamp(1.25rem, 4vw, 2.5rem) 1rem;
    box-sizing: border-box;
}

.tb-signup-card,
.tb-login-card {
    box-sizing: border-box;
    width: min(92vw, 520px);
    max-width: 520px;
    margin-inline: auto;
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.06),
        0 12px 32px rgba(15, 23, 42, 0.1),
        0 24px 48px rgba(15, 23, 42, 0.08);
    /* Tight horizontal padding so fields use more of the card; vertical unchanged */
    padding-block: clamp(1.75rem, 5vw, 2.75rem);
    padding-inline: clamp(0.75rem, 3.5vw, 1.125rem);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.tb-auth-card-brand {
    margin: 0 auto 1.125rem;
    text-align: center;
    line-height: 0;
}

.tb-auth-card-brand img {
    display: inline-block;
    height: auto;
    max-height: 3.75rem;
    width: auto;
    vertical-align: middle;
}

.tb-login-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.tb-login-label-row .tb-signup-label {
    margin-bottom: 0;
}

.tb-login-forgot {
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #006aff;
    text-decoration: none;
}

.tb-login-forgot:hover {
    color: #0053b3;
    text-decoration: underline;
}

.tb-signup-form {
    width: 100%;
    margin: 0;
    text-align: center;
}

.tb-signup-form .tb-signup-field {
    text-align: left;
}

.tb-signup-card__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    text-align: center;
    line-height: 1.2;
}

.tb-signup-card__subtitle {
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
    color: #64748b;
    text-align: center;
    line-height: 1.45;
}

.tb-signup-field {
    margin-top: 1.25rem;
}

.tb-signup-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
}

.tb-signup-input {
    box-sizing: border-box;
    width: 100%;
    height: 2.875rem;
    padding: 0 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.tb-signup-input:focus {
    border-color: #006aff;
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.15);
}

.tb-signup-input::placeholder {
    color: #94a3b8;
}

.tb-signup-input--icon {
    padding-left: 2.625rem;
}

.tb-signup-password-wrap {
    position: relative;
}

.tb-signup-password-wrap .tb-signup-input {
    padding-right: 2.75rem;
}

.tb-signup-eye {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    translate: 0 -50%;
    padding: 0.375rem;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    line-height: 1;
    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.tb-signup-eye:hover {
    color: #006aff;
    background: #f1f5f9;
}

.tb-signup-submit-wrap {
    width: 100%;
    margin-top: 1.5rem;
    box-sizing: border-box;
}

.tb-signup-submit {
    box-sizing: border-box;
    width: 100%;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    background: #006aff;
    box-shadow:
        0 3px 10px rgba(0, 106, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition:
        filter 0.15s ease,
        box-shadow 0.15s ease;
}

.tb-signup-submit:hover {
    filter: brightness(1.03);
    box-shadow: 0 4px 14px rgba(0, 106, 255, 0.35);
}

.tb-signup-back {
    margin-top: 2rem;
    text-align: center;
}

.tb-signup-back a {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
}

.tb-signup-back a:hover {
    color: #006aff;
}
