.tlm-auth {
    width: 100%;
    padding: 32px 16px;
    box-sizing: border-box;
}

.tlm-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 34px;
    background: #fffdf9;
    border: 1px solid #eadfd1;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(54, 43, 32, .08);
    color: #2f2a24;
}

.tlm-logo {
    display: block;
    max-width: 190px;
    max-height: 110px;
    width: auto;
    height: auto;
    margin: 0 auto 24px;
}

.tlm-card h1 {
    margin: 0 0 22px;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.15;
    color: inherit;
    text-align: center;
}

.tlm-form {
    display: grid;
    gap: 14px;
}

.tlm-form label {
    font-weight: 700;
    font-size: 15px;
}

.tlm-form input[type="email"],
.tlm-form input[type="password"],
.tlm-form input[type="text"] {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #d9caba;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 16px;
    background: #fff;
    color: #2f2a24;
}

.tlm-form input:focus {
    outline: 3px solid rgba(93, 70, 51, .18);
    border-color: #5d4633;
}

.tlm-password-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: stretch;
}

.tlm-password-row input {
    min-width: 0;
}

.tlm-show-password {
    border: 1px solid #d9caba;
    background: #f6f1ea;
    color: #2f2a24;
    border-radius: 12px;
    padding: 0 13px;
    cursor: pointer;
    font-weight: 700;
}

.tlm-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: #5d4633;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.tlm-button:hover,
.tlm-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(54, 43, 32, .18);
    opacity: .94;
}

.tlm-checkbox {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 400 !important;
}

.tlm-notice {
    padding: 13px 15px;
    border-radius: 14px;
    margin-bottom: 16px;
    line-height: 1.45;
}

.tlm-success {
    background: #eef7ec;
    border: 1px solid #cfe7ca;
}

.tlm-error {
    background: #fff1ef;
    border: 1px solid #f1c8c1;
}

.tlm-intro {
    margin: 0 0 6px;
    color: #5d554d;
    line-height: 1.55;
}

.tlm-help-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    color: #6d6258;
}

.tlm-help-row a,
.tlm-help-box a {
    color: #5d4633;
    font-weight: 700;
}

.tlm-help-box {
    margin-top: 22px;
    padding: 15px;
    background: #f8f4ee;
    border-radius: 16px;
    color: #5d554d;
}

.tlm-help-box p {
    margin: 6px 0 0;
}

.tlm-strength {
    min-height: 22px;
    font-size: 14px;
    font-weight: 700;
}

.tlm-strength.bad,
.tlm-strength.short {
    color: #9b2d21;
}

.tlm-strength.good {
    color: #82601f;
}

.tlm-strength.strong {
    color: #28662f;
}

@media (max-width: 560px) {
    .tlm-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .tlm-password-row {
        grid-template-columns: 1fr;
    }

    .tlm-show-password {
        min-height: 44px;
    }
}
