
/* ==================================================
   AEROVIX MAILHUB - PREMIUM CORPORATE
   Custom Roundcube Elastic Child Skin
   ================================================== */

:root {
    --av-navy: #0F172A;
    --av-blue: #2563EB;
    --av-violet: #7C3AED;
    --av-light: #F8FAFC;
    --av-text: #0F172A;
    --av-muted: #64748B;
}

/* ---------- BASE ---------- */

body.task-login {
    margin: 0;
    background: var(--av-light);
}

body.task-login #layout {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Keep heading accessible but visually hidden */
body.task-login h1.voice {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ---------- MAIN LAYOUT ---------- */

body.task-login #layout-content.aerovix-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    max-width: none;
    min-height: 100vh;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
}

/* ---------- LEFT BRAND PANEL ---------- */

body.task-login .aerovix-brand-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 60px;
    color: #FFFFFF;
    background: linear-gradient(
        145deg,
        #0F172A 0%,
        #172554 65%,
        #312E81 100%
    );
}

.aerovix-brand-content {
    width: 100%;
    max-width: 480px;
}

.aerovix-brand-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.aerovix-brand-name span {
    color: #93C5FD;
    font-weight: 500;
}

.aerovix-brand-content h2 {
    margin: 75px 0 0;
    color: #FFFFFF;
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
}

.aerovix-brand-content p {
    margin: 24px 0 0;
    color: #CBD5E1;
    font-size: 17px;
    line-height: 1.8;
}

.aerovix-tagline {
    margin-top: 65px;
    color: #93C5FD;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---------- RIGHT LOGIN PANEL ---------- */

body.task-login .aerovix-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 100vh;
    padding: 40px;
    background: var(--av-light);
}

body.task-login .aerovix-login-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* ---------- CORPORATE LOGO ---------- */

body.task-login .aerovix-login-card #logo {
    display: block !important;
    width: 280px !important;
    max-width: 100% !important;
    height: 110px !important;
    max-height: none !important;
    margin: 0 auto 24px !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    object-fit: contain !important;
}

body.task-login .aerovix-login-card #logo img {
    display: block;
    width: 100% !important;
    max-width: 280px !important;
    height: 110px !important;
    max-height: none !important;
    object-fit: contain !important;
}

/* ---------- LOGIN HEADING ---------- */

body.task-login .aerovix-login-card h2 {
    margin: 12px 0 8px;
    color: var(--av-text);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

body.task-login .aerovix-login-card > p {
    margin: 0 0 30px;
    color: var(--av-muted);
    font-size: 15px;
}

/* ---------- ROUNDCUBE LOGIN FORM ---------- */

body.task-login .aerovix-login-card #login-form {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

body.task-login .aerovix-login-card input {
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
}

body.task-login .aerovix-login-card
input:focus {
    border-color: var(--av-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* ---------- LOGIN BUTTON ---------- */

body.task-login .aerovix-login-card
.button.mainaction {
    background: var(--av-blue);
    border-color: var(--av-blue);
    border-radius: 8px;
    transition: background .2s ease;
}

body.task-login .aerovix-login-card
.button.mainaction:hover {
    background: #1D4ED8;
    border-color: #1D4ED8;
}

/* ---------- FOOTER ---------- */

.aerovix-copyright {
    margin-top: 42px;
    color: #94A3B8;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

/* ---------- TABLET ---------- */

@media (max-width: 992px) {
    body.task-login .aerovix-brand-panel {
        padding: 40px;
    }

    .aerovix-brand-content h2 {
        margin-top: 45px;
        font-size: 36px;
    }

    body.task-login .aerovix-form-panel {
        padding: 32px;
    }
}

/* ---------- MOBILE ---------- */

@media (max-width: 768px) {

    body.task-login #layout-content.aerovix-login {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    body.task-login .aerovix-brand-panel {
        width: 100%;
        padding: 28px 24px;
    }

    .aerovix-brand-name {
        font-size: 21px;
    }

    .aerovix-brand-content h2 {
        margin-top: 18px;
        font-size: 27px;
    }

    .aerovix-brand-content p,
    .aerovix-tagline {
        display: none;
    }

    body.task-login .aerovix-form-panel {
        flex: 1;
        width: 100%;
        min-height: 0;
        padding: 36px 24px;
    }

    body.task-login .aerovix-login-card {
        max-width: 420px;
    }

    body.task-login .aerovix-login-card #logo {
        width: 220px !important;
        height: 90px !important;
        margin-bottom: 20px !important;
    }

    body.task-login .aerovix-login-card #logo img {
        max-width: 220px !important;
        height: 90px !important;
    }

    body.task-login .aerovix-login-card h2 {
        font-size: 26px;
    }

    .aerovix-copyright {
        margin-top: 32px;
    }
}


/* Aerovix MailHub - Final Desktop Refinements */

@media (min-width: 769px) {
    body.task-login .aerovix-login-card #logo {
        width: 320px !important;
        height: 120px !important;
        max-width: 100% !important;
    }

    body.task-login .aerovix-login-card #logo img {
        max-width: 320px !important;
        height: 120px !important;
        object-fit: contain;
    }
}

body.task-login .aerovix-copyright {
    color: #64748B;
}


/* Aerovix MailHub - Support Link Position Fix */

/* Hide stray footer support link on login only */
body.task-login > a.support-link,
body.task-login #layout > a.support-link {
    display: none;
}
