.auth-wrapper {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.auth-card {
    width: 100%;
    max-width: 540px;
    background: #ffffff;
    border-radius: 28px;
    padding: 38px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.auth-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #dcfce7;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0f172a;
    margin-bottom: 14px;
}

.auth-text {
    color: #64748b;
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 0;
}

.auth-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.auth-actions .btn {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 700;
    padding-inline: 18px;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .auth-title {
        font-size: 26px;
    }

    .auth-actions .btn {
        width: 100%;
    }
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.auth-input {
    width: 100%;
    min-height: 50px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 15px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.16);
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 14px;
    background: #198754;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-submit:hover {
    background: #157347;
}

.auth-link {
    margin-top: 20px;
    text-align: center;
}

.auth-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.auth-helper {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.auth-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 14px;
    border: 1px solid #fecaca;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    padding: 0 56px 0 16px;
    font-size: 15px;
}

.password-input:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.16);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
}

.auth-back {
    display: block;
    margin-top: 22px;
    text-align: center;
    color: #166534;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.auth-back:hover {
    color: #14532d;
    text-decoration: underline;
}

.password-strength {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 12px;
}

.password-strength span {
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
}

.password-strength span.active {
    background-color: #198754 !important;
}

.password-strength-label {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}
