.customer-auth {
    max-width: 500px;
    padding-block: clamp(24px, 5vw, 48px);
}

.customer-auth h1 {
    font-size: 1.4rem;
    margin-block: 0 20px;
}

.customer-auth__methods {
    display: flex;
    gap: 6px;
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid var(--border, #687681);
    border-radius: 12px;
}

.customer-auth__methods a {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
}

.customer-auth__methods a[aria-current="page"] {
    background: #19745c;
    color: #fff;
}

.customer-auth .contact-form {
    display: grid;
    gap: 12px;
}

.customer-auth .contact-form label {
    margin-bottom: 0;
}

.customer-auth .contact-form input:not([type="checkbox"]) {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
}

.customer-auth input[dir="ltr"] {
    text-align: left;
}

.customer-auth .contact-form input[type="checkbox"] {
    width: auto;
}

.customer-auth__hint {
    font-size: .875rem;
    line-height: 1.9;
    opacity: .8;
    margin-block: 8px 12px;
}

.customer-auth__notice {
    padding: 12px;
    border: 1px solid #19745c;
    border-radius: 10px;
    font-size: .875rem;
}

.customer-auth [role="alert"] {
    color: #c83846;
    line-height: 1.8;
}

.customer-auth__secondary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    font-size: .875rem;
}

.customer-auth__secondary button {
    padding: 6px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.customer-auth .contact-form > .customer-auth__phone-fields {
    display: grid;
    grid-template-columns: 85px minmax(0, 1fr);
    gap: 10px;
    direction: ltr;
}

.customer-auth__country-field,
.customer-auth__phone-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    direction: rtl;
}

.customer-auth__country-select {
    position: relative;
}

.customer-auth__country-select img {
    position: absolute;
    z-index: 1;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 15px;
    object-fit: contain;
    pointer-events: none;
    border-radius: 2px;
}

.customer-auth__country-select bdi {
    position: absolute;
    z-index: 1;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--text);
    pointer-events: none;
}

.customer-auth .customer-auth__country-select select {
    appearance: none;
    width: 100%;
    height: 34px;
    padding: 0;
    font: inherit;
    font-size: 12px;
    color: transparent;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.customer-auth__country-select option {
    color: var(--text);
    background: var(--panel);
}

.customer-auth .customer-auth__phone-field input {
    min-height: 34px;
    height: 34px;
    padding-block: 0;
}

.customer-auth :is(a, button, input, select):focus-visible {
    outline: 2px solid #368fcd;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .customer-auth .contact-form > .customer-auth__phone-fields {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 8px;
    }

    .customer-auth__country-select img {
        width: 14px;
        height: 11px;
        right: 14px;
    }
}
