.tfp-auth-field-error {
    color: var(--tfp-danger-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    margin-top: 2px;
    min-height: 16px;
}

.tfp-auth-input {
    box-sizing: border-box;
    height: 44px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--tfp-accessible-line);
    background: var(--tfp-surface);
    padding: 0 12px;
    color: var(--tfp-ink-800);
    font-size: 13px;
    font-weight: 500;
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.tfp-auth-input::placeholder {
    color: var(--tfp-placeholder);
}

.tfp-auth-input:focus {
    border-color: var(--tfp-ink);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.15);
}

.tfp-auth-shell {
    display: flex;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    background-color: var(--tfp-soft);
}

.tfp-auth-card {
    position: relative;
    width: 100%;
    max-width: 384px;
    overflow: hidden;
    border: 1px solid var(--tfp-line);
    border-radius: 16px;
    background: var(--tfp-surface);
    box-shadow: var(--tfp-elevated-shadow);
}

.tfp-auth-brand-block {
    position: relative;
    padding: 28px 28px 2px;
    text-align: center;
}

.tfp-auth-tagline {
    color: var(--tfp-ink);
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 24px;
}

.tfp-auth-logo {
    display: block;
    width: 96px;
    height: 96px;
    margin: 12px auto 0;
    object-fit: contain;
}

.tfp-auth-title {
    margin-top: 16px;
    color: var(--tfp-ink);
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 28px;
}

.tfp-auth-form {
    padding: 18px 28px 24px;
}

.tfp-auth-field + .tfp-auth-field {
    margin-top: 12px;
}

.tfp-auth-error {
    margin-bottom: 12px;
    border: 1px solid var(--tfp-danger-border);
    border-radius: 8px;
    background: var(--tfp-danger-soft);
    padding: 12px;
    color: var(--tfp-danger-status-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
}

.tfp-auth-footer {
    margin: 0 28px;
    border-top: 1px solid var(--tfp-line);
    padding: 18px 0 26px;
    text-align: center;
}

.tfp-auth-link {
    color: var(--tfp-ink);
    font-weight: 700;
    text-decoration: none;
    transition: color 150ms ease, text-decoration-color 150ms ease;
}

.tfp-auth-link:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .tfp-auth-brand-block {
        padding-left: 32px;
        padding-right: 32px;
    }

    .tfp-auth-form {
        padding-left: 32px;
        padding-right: 32px;
    }

    .tfp-auth-footer {
        margin-left: 32px;
        margin-right: 32px;
    }
}

@media (max-width: 639px), (max-height: 720px) {
    .tfp-auth-shell {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .tfp-auth-logo {
        width: 80px;
        height: 80px;
        margin-top: 10px;
    }

    .tfp-auth-title {
        margin-top: 14px;
        font-size: 20px;
        line-height: 26px;
    }

    .tfp-auth-form {
        padding-top: 16px;
    }
}

@media (max-width: 767px) {
    .tfp-auth-input {
        font-size: 16px;
    }
}
