/* Customer sign-in — standalone page (storefront theme) */

.customer-login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, #e8f0ea 0%, #f4f8f5 38%, #fafcfa 100%);
    position: relative;
    overflow-x: hidden;
}

.customer-login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 12% 18%, rgba(45, 122, 62, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 88% 72%, rgba(249, 115, 22, 0.08) 0%, transparent 45%);
    pointer-events: none;
}

.customer-login-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px));
    position: relative;
    z-index: 1;
}

.customer-login-card {
    width: 100%;
    max-width: 440px;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 22px 45px -15px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(45, 122, 62, 0.08);
    overflow: hidden;
    background: #fff;
}

.customer-login-card .card-body {
    padding: 2rem 1.75rem 1.75rem;
}

.customer-login-accent {
    height: 4px;
    background: linear-gradient(90deg, #2d7a3e, #3d9a52, #2d7a3e);
}

.customer-login-brand {
    text-align: center;
    margin-bottom: 1.35rem;
}

.customer-login-brand img {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.customer-login-brand-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #2d7a3e, #1f5a2d);
    color: #fff;
    font-size: 1.45rem;
}

.customer-login-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1e293b;
    margin-bottom: 0.2rem;
}

.customer-login-sub {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0;
}

.customer-login-form .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
}

.customer-login-form .form-control {
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-color: #d8e5db;
}

.customer-login-form .form-control:focus {
    border-color: #2d7a3e;
    box-shadow: 0 0 0 0.2rem rgba(45, 122, 62, 0.18);
}

.customer-login-input-group .input-group-text {
    background: #f0f6f1;
    border-color: #d8e5db;
    color: #2d7a3e;
    border-radius: 0.5rem 0 0 0.5rem;
}

.customer-login-input-group .form-control {
    border-radius: 0 0.5rem 0.5rem 0;
    border-left: 0;
}

.customer-login-input-group .form-control:focus {
    border-left: 0;
}

.customer-login-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.customer-login-actions .btn {
    min-width: 8rem;
}

.customer-login-links {
    text-align: center;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid #eef2f0;
}

.customer-login-links a {
    color: #2d7a3e;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.customer-login-links a:hover {
    color: #1f5a2d;
    text-decoration: underline;
}

.customer-login-back {
    text-align: center;
    margin-top: 1rem;
}

.customer-login-back a {
    color: #64748b;
    font-size: 0.875rem;
    text-decoration: none;
}

.customer-login-back a:hover {
    color: #f97316;
}

.customer-login-page .alert {
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: none;
}

@media (max-width: 575.98px) {
    .customer-login-card .card-body {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .customer-login-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-login-actions .btn {
        width: 100%;
        min-width: unset;
    }

    .customer-login-actions a {
        text-align: center;
    }
}
