/* ShopCustomer auth — brand guide 2026 (ink / paper / ochre / nav / sand) */

.ws-login {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 3rem 1rem 4rem;
    box-sizing: border-box;
}

.ws-login-card {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    border-radius: 0.4rem;
    overflow: hidden;
    background: var(--paper, #fbf6ec);
    color: var(--ink, #3e4241);
    border: 1px solid var(--sand, #d5c7b6);
    box-shadow: 0 6px 20px rgba(62, 66, 65, 0.12);
}

.ws-login-head {
    padding: 0.75rem 1.15rem;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
    background-color: var(--nav, #3e4241);
    background-image: linear-gradient(
        180deg,
        rgba(238, 242, 243, 0.38) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    border-bottom: 1px solid rgba(122, 121, 121, 0.18);
}

.ws-login-body {
    padding: 1.35rem 1.35rem 1.5rem;
}

.ws-login-intro,
.ws-login-sub,
.ws-forgot-hint {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--ink, #3e4241);
    opacity: 0.95;
}

.ws-login-form {
    display: block;
    width: 100%;
    max-width: none;
}

.ws-login-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    width: 100%;
}

.ws-login-label {
    flex: 0 0 9.25rem;
    width: 9.25rem;
    margin: 0;
    padding: 0;
    color: var(--ink, #3e4241);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.3;
    display: block;
}

.ws-login-field {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

.ws-login-input,
.ws-login .ws-login-input,
.ws-login-field input.ws-login-input,
.ws-login-field .ws-login-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line, #e3e3e3);
    border-radius: 0.35rem;
    padding: 0.5rem 0.7rem;
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink, #3e4241);
    line-height: 1.4;
}

.ws-login-input:focus {
    outline: 2px solid var(--ochre-hot, #c07f2c);
    outline-offset: 1px;
}

.ws-pass-group {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    border: 1px solid var(--line, #e3e3e3);
    border-radius: 0.35rem;
    overflow: hidden;
    background: #fff;
}

.ws-pass-group .ws-login-input {
    border: 0;
    border-radius: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.ws-pass-group .ws-login-input:focus {
    outline: none;
}

.ws-pass-group:focus-within {
    outline: 2px solid var(--ochre-hot, #c07f2c);
    outline-offset: 1px;
}

.ws-pass-toggle {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 0;
    border-left: 1px solid var(--line, #e3e3e3);
    border-radius: 0;
    background: #f3efe6;
    color: var(--ink, #3e4241);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.ws-pass-toggle:hover {
    background: var(--sand, #d5c7b6);
}

.ws-login-footer {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 1.25rem;
    width: 100%;
}

.ws-login-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}

.ws-login-link,
a.ws-login-link,
.ws-login-links a,
.ws-login-nocreate a {
    display: block;
    color: var(--ochre, #b27628);
    font-weight: 600;
    text-decoration: none;
    text-align: left;
    white-space: nowrap;
    line-height: 1.35;
}

.ws-login-link:hover,
a.ws-login-link:hover,
.ws-login-links a:hover,
.ws-login-nocreate a:hover {
    color: var(--ochre-hot, #c07f2c);
    text-decoration: underline;
}

.ws-login-nocreate {
    color: var(--ink, #3e4241);
    font-size: 0.9rem;
    text-align: left;
}

.ws-login-submit {
    appearance: none;
    flex: 0 0 auto;
    margin: 0;
    border: 0;
    border-radius: 0.3rem;
    padding: 0.5rem 1.1rem;
    min-width: 5.75rem;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    background: var(--ochre, #b27628);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ws-login-submit:hover:not(:disabled) {
    background: var(--ochre-hot, #c07f2c);
    color: #fff;
}

.ws-login-submit:disabled {
    opacity: 0.65;
    cursor: default;
}

.ws-login-actions,
.ws-forgot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.35rem;
    justify-content: flex-end;
}

.ws-forgot-actions {
    margin-top: 1.1rem;
}

.ws-login .ws-btn,
.ws-login-actions .ws-btn {
    border: 0;
    border-radius: 0.35rem;
    padding: 0.55rem 0.9rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: var(--ochre, #b27628);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
}

.ws-login .ws-btn:hover,
.ws-login-actions .ws-btn:hover {
    background: var(--ochre-hot, #c07f2c);
}

.ws-login .ws-btn.secondary,
.ws-login-actions .ws-btn.secondary {
    background: #fff;
    color: var(--ink, #3e4241);
    border: 1px solid var(--line, #e3e3e3);
}

.ws-login .ws-alert,
.ws-login-body .ws-alert {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.3rem;
    background: rgba(180, 62, 62, 0.92);
    color: #fff;
    font-size: 0.92rem;
}

.ws-login .ws-alert-ok,
.ws-login-body .ws-alert-ok {
    background: rgba(25, 135, 84, 0.92);
    color: #fff;
}

.ws-login .ws-muted,
.ws-login-body .ws-muted {
    color: var(--ink, #3e4241);
    opacity: 0.75;
    font-size: 0.9rem;
}

.ws-login .ws-field-error,
.ws-login-body .ws-field-error {
    color: #a33a3a;
    font-size: 0.88rem;
    margin: 0.25rem 0 0;
}

/* Auth shell context — keep paper card / ochre CTA (do not revert to PHP grey) */
.ws-auth .ws-login {
    padding: 2.75rem 0.5rem 3rem;
}

.ws-auth .ws-login-card {
    max-width: 43rem;
}

@media (max-width: 560px) {
    .ws-login,
    .ws-auth .ws-login {
        padding: 1.5rem 0.75rem 2.5rem;
    }

    .ws-login-row,
    .ws-auth .ws-login-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .ws-login-label {
        flex: none;
        width: auto;
    }

    .ws-login-footer,
    .ws-auth .ws-login-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .ws-login-links {
        align-items: flex-start;
        order: 1;
    }

    .ws-login-link,
    a.ws-login-link,
    .ws-login-links a {
        text-align: left;
        white-space: normal;
    }

    .ws-login-submit {
        order: 2;
        width: 100%;
    }

    .ws-login-actions,
    .ws-forgot-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ws-forgot-actions .ws-login-submit {
        width: 100%;
    }
}
