:root {
    --cust-ink: #0b1f33;
    --cust-ink-soft: #3d556c;
    --cust-blue: #106098;
    --cust-blue-deep: #0a4a78;
    --cust-sky: #e8f3fa;
    --cust-line: rgba(16, 96, 152, 0.18);
    --cust-white: #ffffff;
    --cust-danger: #b42318;
    --cust-success: #067647;
    --font-display: "Outfit", sans-serif;
    --font-body: "DM Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body.customer-login-page {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-body);
    color: var(--cust-ink);
    background: var(--cust-sky);
}

.customer-login {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.customer-login__brand {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(10, 74, 120, 0.86), rgba(11, 31, 51, 0.68)),
        url("../images/login-img.jpg") center / cover no-repeat;
    color: var(--cust-white);
    display: flex;
    align-items: flex-end;
    padding: clamp(2rem, 5vw, 4.5rem);
}

.customer-login__brand-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.2), transparent 40%),
        linear-gradient(180deg, transparent 30%, rgba(7, 24, 40, 0.58) 100%);
    pointer-events: none;
}

.customer-login__brand-content {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    animation: customerLoginRise 700ms ease both;
}

.customer-login__brand-logo {
    display: block;
    width: min(240px, 55%);
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.customer-login__brand-eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
}

.customer-login__brand-title {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.customer-login__brand-copy {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 28rem;
    opacity: 0.92;
}

.customer-login__panel {
    display: flex;
    background: linear-gradient(180deg, #f7fbfe 0%, #eef5fb 100%);
}

.customer-login__panel-inner {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

.customer-login__panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: customerLoginRise 700ms ease both;
}

.customer-login__panel-logo {
    width: 140px;
    height: auto;
}

.customer-login__admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--cust-blue);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.customer-login__admin-link:hover {
    color: var(--cust-blue-deep);
    transform: translateX(2px);
}

.customer-login__form-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: customerLoginRise 850ms ease both;
}

.customer-login__badge {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(16, 96, 152, 0.1);
    color: var(--cust-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.customer-login__title {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--cust-ink);
}

.customer-login__subtitle {
    margin: 0 0 1.6rem;
    color: var(--cust-ink-soft);
    font-size: 1rem;
    line-height: 1.5;
}

.customer-login__alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.92rem;
}

.customer-login__alert--success {
    background: #ecfdf3;
    color: var(--cust-success);
    border: 1px solid #abefc6;
}

.customer-login__alert--error {
    background: #fef3f2;
    color: var(--cust-danger);
    border: 1px solid #fecdca;
}

.customer-login__alert ul {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.customer-login__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cust-ink);
}

.customer-login__field {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.1rem;
    border: 1px solid var(--cust-line);
    border-radius: 14px;
    background: var(--cust-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.customer-login__field:focus-within {
    border-color: var(--cust-blue);
    box-shadow: 0 0 0 4px rgba(16, 96, 152, 0.12);
}

.customer-login__field > i {
    position: absolute;
    left: 1rem;
    color: var(--cust-blue);
    font-size: 0.95rem;
    pointer-events: none;
}

.customer-login__field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0.95rem 3rem 0.95rem 2.75rem;
    font-size: 1rem;
    color: var(--cust-ink);
    font-family: inherit;
}

.customer-login__field input.is-invalid {
    color: var(--cust-danger);
}

.customer-login__toggle-password {
    position: absolute;
    right: 0.55rem;
    border: 0;
    background: transparent;
    color: var(--cust-ink-soft);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    cursor: pointer;
}

.customer-login__toggle-password:hover {
    color: var(--cust-blue);
    background: rgba(16, 96, 152, 0.08);
}

.customer-login__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.25rem 0 1.4rem;
}

.customer-login__remember {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    color: var(--cust-ink-soft);
    cursor: pointer;
}

.customer-login__remember input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--cust-blue);
}

.customer-login__forgot {
    color: var(--cust-blue);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.customer-login__forgot:hover {
    text-decoration: underline;
}

.customer-login__submit {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 0.95rem 1.25rem;
    background: linear-gradient(135deg, var(--cust-blue), var(--cust-blue-deep));
    color: var(--cust-white);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 12px 28px rgba(16, 96, 152, 0.28);
}

.customer-login__submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.customer-login__submit:active {
    transform: translateY(0);
}

.customer-login__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.15rem 0;
    color: var(--cust-ink-soft);
    font-size: 0.85rem;
}

.customer-login__divider::before,
.customer-login__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--cust-line);
}

.customer-login__signup {
    display: block;
    width: 100%;
    text-align: center;
    border: 1.5px solid var(--cust-blue);
    border-radius: 14px;
    padding: 0.9rem 1.25rem;
    background: transparent;
    color: var(--cust-blue);
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.customer-login__signup:hover {
    background: rgba(16, 96, 152, 0.08);
    color: var(--cust-blue-deep);
}

.customer-login__footer {
    margin: 2rem 0 0;
    text-align: center;
    color: var(--cust-ink-soft);
    font-size: 0.82rem;
}

@keyframes customerLoginRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .customer-login {
        grid-template-columns: 1fr;
    }

    .customer-login__brand {
        min-height: 34svh;
        align-items: center;
        padding: 2rem 1.5rem;
    }

    .customer-login__brand-content {
        text-align: center;
        margin: 0 auto;
    }

    .customer-login__brand-logo {
        margin-left: auto;
        margin-right: auto;
        width: min(200px, 60%);
    }

    .customer-login__brand-copy {
        margin-left: auto;
        margin-right: auto;
    }

    .customer-login__panel-inner {
        min-height: auto;
        padding-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .customer-login__panel-top {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }

    .customer-login__brand-title {
        font-size: 1.75rem;
    }
}

/* Signup brand uses signup-img */
.customer-login--signup .customer-login__brand {
    background:
        linear-gradient(145deg, rgba(10, 74, 120, 0.86), rgba(11, 31, 51, 0.68)),
        url("../images/signup-img.jpg") center / cover no-repeat;
}

/* intl-tel-input inside signup fields */
.customer-login__field--phone {
    padding-left: 0;
}

.customer-login__field--phone > .iti {
    width: 100%;
}

.customer-login__field--phone .iti__tel-input {
    width: 100%;
    border: 0 !important;
    outline: 0;
    background: transparent;
    padding: 0.95rem 1rem 0.95rem 3.4rem;
    font-size: 1rem;
    color: var(--cust-ink);
    font-family: inherit;
    box-shadow: none !important;
}

.customer-login__field--phone .iti__selected-country {
    border: 0;
    background: transparent;
}

.customer-login__field--phone .iti__dropdown-content {
    border-radius: 12px;
    border: 1px solid var(--cust-line);
    box-shadow: 0 10px 30px rgba(11, 31, 51, 0.12);
    z-index: 20;
}

.customer-login__hint {
    margin: -0.55rem 0 1rem;
    font-size: 0.8rem;
    color: var(--cust-ink-soft);
}

/* OTP boxes */
.customer-login__otp-grid {
    display: flex;
    justify-content: space-between;
    gap: 0.55rem;
    margin: 0.25rem 0 1.4rem;
}

.customer-login__otp-box {
    flex: 1;
    min-width: 0;
    max-width: 3.35rem;
    height: 3.5rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cust-ink);
    border: 1.5px solid var(--cust-line);
    border-radius: 12px;
    background: var(--cust-white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.customer-login__otp-box:focus {
    border-color: var(--cust-blue);
    box-shadow: 0 0 0 4px rgba(16, 96, 152, 0.12);
}

.customer-login__email-mask {
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(16, 96, 152, 0.08);
    color: var(--cust-blue-deep);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    word-break: break-all;
}

.customer-login__resend-form {
    margin-top: 1.15rem;
    text-align: center;
}

.customer-login__resend-copy {
    margin: 0;
    color: var(--cust-ink-soft);
    font-size: 0.92rem;
}

.customer-login__resend-btn {
    border: 0;
    background: transparent;
    color: var(--cust-blue);
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.customer-login__resend-btn:hover:not(:disabled) {
    color: var(--cust-blue-deep);
}

.customer-login__resend-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    text-decoration: none;
}

.customer-login__resend-hint {
    margin-top: 0.45rem !important;
}

.customer-login__back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.1rem;
    width: 100%;
    color: var(--cust-ink-soft);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.customer-login__back-link:hover {
    color: var(--cust-blue);
}

@media (max-width: 420px) {
    .customer-login__otp-grid {
        gap: 0.35rem;
    }

    .customer-login__otp-box {
        height: 3rem;
        font-size: 1.15rem;
        border-radius: 10px;
    }
}
