
/* =========================================
   WEB EXPORT - LOGIN PAGE
   Brand: Blue + White + Orange CTA
========================================= */

.we-login-page {
    --we-primary: #1769AA;
    --we-primary-dark: #0D477A;
    --we-primary-light: #EAF3FB;
    --we-accent: #FF8C52;
    --we-accent-hover: #F47738;
    --we-heading: #173451;
    --we-text: #526579;
    --we-muted: #78899A;
    --we-border: #DCE5ED;
    --we-page-bg: #F5F8FB;

    padding: 64px 20px;
    background: var(--we-page-bg);
    font-family: inherit;
}

.we-login-container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 64px;
}

/* Left introduction panel */
.we-login-welcome {
    padding: 20px 0;
}

.we-login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid #D5E5F4;
    border-radius: 30px;
    background: #FFFFFF;
    color: var(--we-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.we-login-welcome h1 {
    margin: 25px 0 18px;
    color: var(--we-heading);
    font-size: clamp(34px, 4vw, 49px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -1.5px;
}

.we-login-welcome h1 span {
    color: var(--we-primary);
}

.we-login-welcome > p {
    max-width: 490px;
    margin-bottom: 32px;
    color: var(--we-text);
    font-size: 15px;
    line-height: 1.85;
}

.we-login-benefits {
    display: grid;
    gap: 22px;
}

.we-login-benefit {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.we-login-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--we-primary-light);
    color: var(--we-primary);
    font-size: 21px;
}

.we-login-benefit h3 {
    margin: 2px 0 5px;
    color: var(--we-heading);
    font-size: 15px;
    font-weight: 750;
}

.we-login-benefit p {
    margin: 0;
    color: var(--we-muted);
    font-size: 13px;
    line-height: 1.6;
}

.we-login-trust {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 32px;
    color: var(--we-primary-dark);
    font-size: 13px;
    font-weight: 650;
}

.we-login-trust i {
    color: #23966B;
    font-size: 17px;
}

/* Login card */
.we-login-form-wrap {
    width: 100%;
}

.we-login-card {
    padding: 36px;
    border: 1px solid #E8EDF2;
    border-radius: 22px;
    background: #FFFFFF;
    box-shadow: 0 18px 55px rgba(23, 52, 81, 0.08);
}

.we-login-heading {
    margin-bottom: 25px;
}

.we-login-small-label {
    color: var(--we-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.we-login-heading h2 {
    margin: 9px 0 7px;
    color: var(--we-heading);
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.we-login-heading p {
    margin: 0;
    color: var(--we-muted);
    font-size: 13px;
}

/* Buyer and Supplier selector */
.we-login-role-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--we-border);
    border-radius: 13px;
    background: #F7F9FC;
}

.we-login-role {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 47px;
    padding: 10px 7px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--we-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease;
}

.we-login-role i {
    font-size: 17px;
}

.we-login-role.active {
    border-color: #D7E7F5;
    background: #FFFFFF;
    color: var(--we-primary);
    box-shadow: 0 2px 8px rgba(23, 52, 81, 0.06);
}

.we-login-role-note {
    min-height: 42px;
    padding: 14px 0 12px;
    color: var(--we-muted);
    font-size: 12px;
    line-height: 1.6;
}

/* Form fields */
.we-login-field {
    margin-bottom: 20px;
}

.we-login-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--we-heading);
    font-size: 12px;
    font-weight: 750;
}

.we-login-input {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 51px;
    padding: 0 14px;
    border: 1px solid var(--we-border);
    border-radius: 11px;
    background: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.we-login-input:focus-within {
    border-color: var(--we-primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.09);
}

.we-login-input > i {
    flex-shrink: 0;
    color: #8295A8;
    font-size: 17px;
}

.we-login-input input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--we-heading);
    font-family: inherit;
    font-size: 13px;
    box-shadow: none;
}

.we-login-input input::placeholder {
    color: #A1AFBC;
}

.we-login-password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.we-login-password-label a {
    color: var(--we-primary);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.we-login-password-label a:hover {
    text-decoration: underline;
}

.we-login-password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--we-muted);
    cursor: pointer;
    font-size: 17px;
}

.we-login-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    color: var(--we-text);
    font-size: 12px;
    cursor: pointer;
}

.we-login-remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--we-primary);
}

/* Standard orange CTA for Web Export */
.we-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 13px 20px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        #FFB38A 0%,
        #FF8C52 45%,
        #FF6B2C 100%
    );
    color: #FFFFFF;
    box-shadow:
        0 8px 20px rgba(255, 108, 44, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.we-login-submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 10px 24px rgba(255, 108, 44, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Registration links */
.we-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 20px;
    color: #95A3B0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.we-login-divider::before,
.we-login-divider::after {
    flex: 1;
    height: 1px;
    background: #E9EEF3;
    content: "";
}

.we-login-register {
    text-align: center;
}

.we-login-register p {
    margin: 0 0 9px;
    color: var(--we-muted);
    font-size: 12px;
}

.we-login-register a {
    color: var(--we-primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.we-login-register a:hover {
    color: var(--we-primary-dark);
    text-decoration: underline;
}

.we-login-register a i {
    margin-left: 4px;
}

.we-login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 26px 0 0;
    padding-top: 18px;
    border-top: 1px solid #EDF1F5;
    color: var(--we-muted);
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

.we-login-security i {
    color: var(--we-primary);
    font-size: 14px;
}

/* Tablet and mobile responsive */
@media (max-width: 991px) {
    .we-login-page {
        padding: 45px 18px;
    }

    .we-login-container {
        max-width: 620px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .we-login-welcome {
        padding: 0;
    }

    .we-login-welcome h1 {
        margin-top: 19px;
        font-size: 37px;
    }

    .we-login-welcome > p {
        margin-bottom: 22px;
    }

    .we-login-benefits {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .we-login-trust {
        margin-top: 22px;
    }
}

@media (max-width: 480px) {
    .we-login-page {
        padding: 30px 13px;
    }

    .we-login-container {
        gap: 25px;
    }

    .we-login-welcome h1 {
        font-size: 31px;
        letter-spacing: -0.8px;
    }

    .we-login-welcome > p {
        font-size: 13px;
    }

    .we-login-benefit-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .we-login-card {
        padding: 23px 17px;
        border-radius: 17px;
    }

    .we-login-heading h2 {
        font-size: 26px;
    }

    .we-login-role {
        gap: 5px;
        font-size: 11px;
    }

    .we-login-role i {
        font-size: 15px;
    }
}
