/* Customer log-in / sign-up (views.customer_login.php). Plain centered page,
   no site header or footer, City Tech Store red and navy. */

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    color: var(--color-text);
}

.auth-main {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    padding: 3rem 1rem 2rem;
}

.auth-box {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    display: inline-block;
    line-height: 0;
    border-radius: 50%;
}

.auth-logo img {
    width: 56px;
    height: 56px;
}

/* Thin brand line under the logo, fading out at both ends. */
.auth-rule {
    height: 2px;
    width: 72%;
    margin: 0.65rem auto 1.4rem;
    background: linear-gradient(90deg, transparent, var(--color-primary) 18%, var(--color-primary) 82%, transparent);
    border-radius: 2px;
}

.auth-title {
    font-family: var(--font-family-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 0.35rem;
}

.auth-sub {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0 0 1.6rem;
}

.auth-sub strong {
    color: var(--color-text);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.auth-who {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 0.6rem;
}

.auth-who span {
    font-weight: 600;
    color: var(--color-text);
    overflow-wrap: anywhere;
}

.auth-change {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.auth-change:hover {
    text-decoration: underline;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    text-align: left;
    font-size: 0.875rem;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    margin-bottom: 1.25rem;
}

.auth-alert i {
    margin-top: 0.15rem;
}

.auth-alert-error {
    background-color: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.auth-alert-info {
    background-color: #F1F5F9;
    color: var(--color-navy-light);
    border: 1px solid var(--color-border);
}

.auth-form {
    text-align: left;
}

/* Outlined field with its label sitting in the top border (shown above the
   text once something is typed, like Jumia's). */
.auth-field {
    position: relative;
    margin-bottom: 1rem;
}

.auth-field input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0.9rem 0.9rem 0.35rem;
    font-size: 1rem; /* 16px: no zoom-in on iPhone */
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input:hover {
    border-color: #94A3B8;
}

.auth-field input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14%, transparent);
}

.auth-field label {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 0.25rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    background-color: var(--color-white);
    pointer-events: none;
    transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
    max-width: calc(100% - 1.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-field label span {
    color: var(--color-primary);
    margin-left: 1px;
}

.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label,
.auth-field input:-webkit-autofill + label {
    top: 0;
    font-size: 0.75rem;
}

.auth-field input:focus + label {
    color: var(--color-primary);
}

.auth-field-password input {
    padding-right: 3rem;
}

.auth-eye {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted);
}

.auth-eye:hover,
.auth-eye.is-on {
    color: var(--color-navy);
}

.auth-eye:focus-visible {
    outline: 2px solid var(--color-primary);
}

.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.75rem;
}

.auth-hint {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin: -0.6rem 0 1rem 0.2rem;
}

.auth-check {
    font-size: 0.85rem;
    margin: 0.25rem 0 1.25rem;
}

.auth-check .form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.auth-check a {
    color: var(--color-primary);
}

/* Full-width button; grey and flat while there's nothing to send. */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 50px;
    margin-top: 1.5rem;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 6px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-family-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 28%, transparent);
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-btn:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.auth-btn:focus-visible {
    outline: 0;
    box-shadow: var(--cts-focus-ring);
}

.auth-btn:active {
    background-color: var(--cts-red-active);
}

.auth-btn:disabled {
    background-color: #E5E7EB;
    color: #9CA3AF;
    box-shadow: none;
    cursor: not-allowed;
}

.auth-btn.is-busy {
    background-color: var(--color-primary);
    color: var(--color-white);
    opacity: 0.75;
    cursor: progress;
}

.auth-form-signup .auth-btn {
    margin-top: 0;
}

.auth-note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

.auth-btn-google {
    background-color: var(--color-white);
    color: var(--color-text);
    border: 1px solid #CBD5E1;
    box-shadow: none;
}

.auth-btn-google:hover {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.auth-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.auth-or::before,
.auth-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--color-border);
}

.auth-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.auth-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.auth-social-btn:hover,
.auth-social-btn:focus-visible {
    border-color: #CBD5E1;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.auth-legal {
    margin: 2rem 0 0;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.auth-legal a,
.auth-legal-terms {
    color: var(--color-primary);
}

.auth-legal a {
    text-decoration: none;
}

.auth-legal a:hover {
    text-decoration: underline;
}

.auth-foot {
    flex-shrink: 0;
    text-align: center;
    padding: 1.5rem 1rem 1.75rem;
}

.auth-help {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0 0 0.85rem;
}

.auth-help a {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.auth-help a:hover {
    color: var(--color-primary);
}

.auth-help-phone {
    white-space: nowrap;
}

.auth-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-navy);
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
}

.auth-wordmark:hover {
    color: var(--color-navy);
}

/* "New here?" hint under Continue on step 1. */
.auth-new {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.9rem 0 0;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background-color: #FFF5F5;
    border: 1px solid color-mix(in srgb, var(--color-primary) 22%, white);
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: left;
}

.auth-new i,
.auth-new svg {
    color: var(--color-primary);
    margin-top: 0.15rem;
    flex: 0 0 auto;
}

/* "Forgot password?" / "Set a password" under a button. */
.auth-forgot {
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.auth-forgot a {
    display: inline-block;
    padding: 0.35rem 0.25rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.auth-alert-ok {
    background-color: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

/* Reset page: password rules, ticked off as they are met. */
.auth-rules {
    list-style: none;
    margin: -0.25rem 0 0.25rem;
    padding: 0;
    display: grid;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: left;
}

.auth-rules li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.auth-rules li::before {
    content: "";
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    box-sizing: border-box;
}

.auth-rules li.is-met {
    color: #166534;
}

.auth-rules li.is-met::before {
    border-color: #16A34A;
    background: #16A34A radial-gradient(circle, #FFFFFF 0 2px, transparent 2.5px);
}

/* "Check your email" state. */
.auth-sent-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F0FDF4;
    color: #16A34A;
    font-size: 1.6rem;
}

.auth-sent-tips {
    margin: 0.5rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background-color: #F8FAFC;
    border: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: left;
    line-height: 1.5;
}

.auth-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 48px;
    margin-top: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: none;
    background-color: var(--color-white);
}

.auth-link-btn:hover {
    border-color: #94A3B8;
    color: var(--color-navy);
}

@media (max-width: 575.98px) {
    .auth-main {
        padding: 2rem 1.25rem 1.5rem;
    }

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