/* Auth CSS */
/* Store auth (login / register) */
.store-auth__header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.store-auth__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
}

.store-auth__subtitle {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.store-auth__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.3rem;
    border-radius: 0.875rem;
    background: #f3f4f6;
}

.store-auth__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.75rem;
    border-radius: 0.7rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.store-auth__tab--active {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
}

.store-auth__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.store-auth__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-auth__alert {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.875rem;
    line-height: 1.45;
}

.store-auth__alert-list {
    list-style: disc;
    padding-left: 1.1rem;
    margin: 0;
}

.store-auth__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.store-auth__field span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.store-auth__field small {
    font-weight: 500;
    color: #9ca3af;
}

.store-auth__field input,
.store-auth__password-label input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.9375rem;
    color: #111827;
    background: #fff;
}

.store-auth__field input:focus,
.store-auth__password-label input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(150, 99, 63, 0.12);
}

.store-auth__password-label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.store-auth__password-label > span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.store-auth__password-rules {
    list-style: none;
    margin: 0.15rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.store-auth__password-rule {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    color: #9ca3af;
    transition: color 0.15s ease;
}

.store-auth__password-rule-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 0.95rem;
    height: 0.95rem;
    color: inherit;
}

.store-auth__password-rule-icon svg {
    width: 100%;
    height: 100%;
}

.store-auth__password-rule--met {
    color: #16a34a;
    font-weight: 600;
}

.store-auth__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.45;
}

.store-auth__checkbox--inline {
    align-items: center;
}

.store-auth__checkbox input {
    margin-top: 0.15rem;
    accent-color: var(--color-primary);
}

.store-auth__checkbox--inline input {
    margin-top: 0;
}

.store-auth__checkbox a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.store-auth__submit {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 0.75rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.store-auth__submit:hover:not(:disabled):not(.store-auth__submit--disabled) {
    background: var(--color-primary-dark);
}

.store-auth__submit--disabled,
.store-auth__submit:disabled {
    background: #d6c4b4;
    color: rgba(255, 255, 255, 0.85);
    cursor: not-allowed;
    opacity: 0.72;
    box-shadow: none;
}

.store-auth__submit--disabled:hover,
.store-auth__submit:disabled:hover {
    background: #d6c4b4;
}

.store-auth__back {
    margin-top: 1.25rem;
    text-align: center;
}

.store-auth__back a {
    font-size: 0.875rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.store-auth__back a:hover {
    color: var(--color-primary);
}

@media (max-width: 639px) {
    .store-auth__title {
        font-size: 1.375rem;
    }

    .store-auth__card {
        padding: 1.15rem;
    }

    .store-auth__tab {
        font-size: 0.8125rem;
        padding: 0.65rem 0.5rem;
    }
}
