﻿
/* =========================================
   Wellcargo MailFlow - Sign-in Page
   ========================================= */

:root {
    --primary: #0078d4;
    --primary-hover: #0067b8;
    --text: #202b3a;
    --muted: #596b85;
    --background: #f6faff;
    --white: #ffffff;
    --border: #e8eff7;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.app {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: radial-gradient( ellipse at 100% 0%, rgba(190, 222, 255, .52) 0%, transparent 43% ), radial-gradient( ellipse at 0% 100%, rgba(197, 225, 255, .56) 0%, transparent 39% ), var(--background);
}

/* Header */

.header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
    padding: 0 3.6%;
    color: var(--white);
    background: var(--primary);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    font-size: clamp(19px, 2.1vw, 21px);
    font-weight: 650;
    letter-spacing: -.5px;
    text-decoration: none;
    color: #fff;
}

.ms-logo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    flex-shrink: 0;
    gap: 2px;
    width: 27px;
    height: 27px;
}

    .ms-logo span:nth-child(1) {
        background: #f25022;
    }

    .ms-logo span:nth-child(2) {
        background: #7fba00;
    }

    .ms-logo span:nth-child(3) {
        background: #00a4ef;
    }

    .ms-logo span:nth-child(4) {
        background: #ffb900;
    }

.secure-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 17px;
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 28px;
    background: rgba(255, 255, 255, .10);
    font-size: 14px;
    white-space: nowrap;
}

    .secure-badge svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* Background decorative shapes */

.app::before,
.app::after {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
    border-radius: 50%;
}

.app::before {
    width: 540px;
    height: 540px;
    top: -250px;
    right: -205px;
    background: rgba(211, 232, 255, .55);
}

.app::after {
    width: 640px;
    height: 640px;
    left: -435px;
    bottom: -410px;
    border: 1px solid rgba(203, 228, 255, .55);
    background: rgba(214, 235, 255, .25);
}

/* Main area */

.main {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
}

/* Login card */

.login-card {
    width: 100%;
    max-width: 660px;
    padding: 30px 44px 34px;
    border: 1px solid rgba(233, 240, 249, .95);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 38px rgba(43, 77, 115, .12);
    text-align: center;
    animation: card-enter .4s ease-out both;
}

/* Envelope illustration */

.illustration {
    position: relative;
    display: grid;
    place-items: center;
    width: 300px;
    height: 205px;
    max-width: 100%;
    margin: 0 auto 4px;
}

.illustration-circle {
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient( circle, #f1f8ff 0%, #f5faff 68%, rgba(255, 255, 255, 0) 100% );
}

.envelope {
    position: absolute;
    z-index: 1;
    top: 49px;
    left: 50%;
    width: 155px;
    height: 112px;
    transform: translateX(-50%);
    filter: drop-shadow(0 9px 9px rgba(0, 120, 212, .10));
}

.mini-ms-logo {
    position: absolute;
    z-index: 2;
    top: 34px;
    left: calc(50% + 49px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    width: 48px;
    height: 48px;
}

    .mini-ms-logo span {
        border-radius: 2px;
    }

        .mini-ms-logo span:nth-child(1) {
            background: #f25022;
        }

        .mini-ms-logo span:nth-child(2) {
            background: #7fba00;
        }

        .mini-ms-logo span:nth-child(3) {
            background: #00a4ef;
        }

        .mini-ms-logo span:nth-child(4) {
            background: #ffb900;
        }

.dot {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    background: #b7dcff;
}

.dot-left {
    top: 61px;
    left: 35px;
    width: 16px;
    height: 16px;
}

.dot-right {
    top: 57px;
    right: 28px;
    width: 10px;
    height: 10px;
    background: #e7f3ff;
}

.dot-bottom {
    bottom: 22px;
    left: 19px;
    width: 70px;
    height: 70px;
    background: rgba(221, 239, 255, .36);
}

.paper-plane {
    position: absolute;
    z-index: 3;
    top: 93px;
    right: 4px;
    width: 36px;
    height: 36px;
    transform: rotate(5deg);
}

.flight-path {
    position: absolute;
    z-index: 0;
    top: 103px;
    right: 7px;
    width: 112px;
    height: 72px;
}

.login-card h1 {
    margin: 5px 0 13px;
    font-size: clamp(25px, 3vw, 37px);
    font-weight: 650;
    line-height: 1.22;
    letter-spacing: -.8px;
}

.description {
    margin: 0 auto 34px;
    color: var(--muted);
    font-size: clamp(14px, 1.5vw, 19px);
    line-height: 1.6;
}

/* Sign-in button */

.login-button {
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 100%;
    min-height: 62px;
    padding: 16px 20px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(0, 120, 212, .13);
    color: var(--white);
    font-size: 21px;
    font-weight: 600;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .login-button:hover {
        background: var(--primary-hover);
        border-color: var(--primary-hover);
        box-shadow: 0 10px 22px rgba(0, 103, 184, .22);
    }

    .login-button:active {
        transform: translateY(1px);
    }

.button-logo {
    width: 22px;
    height: 22px;
}

/* Divider and security text */

.divider {
    height: 1px;
    margin: 25px 0 19px;
    background: var(--border);
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #657791;
    font-size: 14px;
    line-height: 1.5;
}

    .security-note svg {
        flex: 0 0 26px;
        width: 26px;
        height: 26px;
        fill: none;
        stroke: var(--primary);
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* Footer */

.footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    padding: 12px 4.2%;
    color: #657791;
    font-size: 14px;
}

    .footer nav {
        display: flex;
        align-items: center;
        gap: 26px;
    }

        .footer nav a {
            color: var(--primary);
            transition: color .2s ease;
        }

            .footer nav a:hover {
                color: var(--primary-hover);
                text-decoration: underline;
            }

.separator {
    color: #8595a9;
}

/* Keyboard accessibility */

.brand:focus-visible,
.login-button:focus-visible,
.footer a:focus-visible {
    outline: 3px solid #73baff;
    outline-offset: 4px;
}

/* Compact desktop and laptop screens */

@media (max-height: 760px) and (min-width: 601px) {
    .header {
        min-height: 60px;
    }

    .main {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .login-card {
        padding: 18px 36px 20px;
    }

    .illustration {
        height: 130px;
        margin-bottom: 3px;
    }

    .illustration-circle {
        width: 130px;
        height: 130px;
    }

    .envelope {
        top: 31px;
        width: 110px;
        height: 85px;
    }

    .mini-ms-logo {
        top: 16px;
        left: calc(50% + 35px);
        width: 36px;
        height: 36px;
        gap: 3px;
    }

    .dot-left {
        top: 35px;
    }

    .dot-right {
        top: 31px;
    }

    .dot-bottom {
        width: 45px;
        height: 45px;
        bottom: 12px;
    }

    .paper-plane {
        top: 63px;
        width: 28px;
        height: 28px;
    }

    .flight-path {
        top: 69px;
        width: 82px;
        height: 50px;
    }

    .login-card h1 {
        margin-top: 4px;
        margin-bottom: 9px;
        font-size: 29px;
    }

    .description {
        margin-bottom: 20px;
        font-size: 15px;
    }

    .login-button {
        min-height: 56px;
        font-size: 18px;
    }

    .divider {
        margin: 17px 0 13px;
    }

    .footer {
        min-height: 48px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .header {
        min-height: 62px;
        padding: 0 16px;
        gap: 10px;
    }

    .brand {
        gap: 8px;
        font-size: clamp(15px, 4vw, 20px);
        letter-spacing: -.3px;
    }

        .brand .ms-logo {
            width: 22px;
            height: 22px;
        }

    .secure-badge {
        gap: 5px;
        padding: 8px 9px;
        font-size: 10px;
    }

        .secure-badge svg {
            width: 15px;
            height: 15px;
        }

    .main {
        padding: 22px 15px;
    }

    .login-card {
        max-width: 440px;
        padding: 23px 21px 25px;
        border-radius: 15px;
    }

    .illustration {
        height: 125px;
        margin-bottom: 7px;
    }

    .illustration-circle {
        width: 125px;
        height: 125px;
    }

    .envelope {
        top: 28px;
        width: 110px;
        height: 85px;
    }

    .mini-ms-logo {
        top: 15px;
        left: calc(50% + 34px);
        width: 34px;
        height: 34px;
        gap: 3px;
    }

    .dot-left {
        top: 34px;
        left: 26px;
    }

    .dot-right {
        top: 31px;
        right: 23px;
    }

    .dot-bottom {
        width: 42px;
        height: 42px;
        bottom: 10px;
        left: 13px;
    }

    .paper-plane {
        top: 61px;
        right: 3px;
        width: 27px;
        height: 27px;
    }

    .flight-path {
        top: 69px;
        right: 0;
        width: 82px;
        height: 48px;
    }

    .login-card h1 {
        margin: 4px 0 11px;
        font-size: 26px;
        letter-spacing: -.5px;
    }

    .description {
        margin-bottom: 23px;
        font-size: 14px;
    }

    .login-button {
        min-height: 55px;
        gap: 10px;
        padding: 12px;
        border-radius: 9px;
        font-size: 15px;
    }

    .divider {
        margin: 20px 0 15px;
    }

    .security-note {
        gap: 8px;
        font-size: 11px;
    }

        .security-note svg {
            flex-basis: 22px;
            width: 22px;
            height: 22px;
        }

    .footer {
        min-height: 52px;
        padding: 12px 16px;
        gap: 12px;
        font-size: 10px;
    }

        .footer nav {
            gap: 12px;
        }
}

/* Extra-short mobile screens */

@media (max-height: 600px) and (max-width: 600px) {
    .header {
        min-height: 52px;
    }

    .main {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .login-card {
        padding-top: 12px;
        padding-bottom: 14px;
    }

    .illustration {
        height: 75px;
        margin-bottom: 3px;
    }

    .illustration-circle {
        width: 75px;
        height: 75px;
    }

    .envelope {
        top: 13px;
        width: 75px;
        height: 60px;
    }

    .mini-ms-logo {
        top: 6px;
        left: calc(50% + 24px);
        width: 24px;
        height: 24px;
    }

    .dot,
    .paper-plane,
    .flight-path {
        display: none;
    }

    .login-card h1 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .description {
        margin-bottom: 12px;
    }

    .login-button {
        min-height: 46px;
    }

    .divider {
        margin: 12px 0;
    }

    .footer {
        min-height: 40px;
    }
}

/* Reduced motion preference */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
