:root {
    --aannex-red: #e30613;
    --aannex-navy: #061b55;
    --aannex-blue-1: #d1dff6;
    --aannex-blue-2: #bfd6f5;
    --aannex-blue-3: #a7c5f2;
    --aannex-blue-4: #92b6f0;
    --aannex-white: #ffffff;
    --aannex-border: rgba(6, 27, 85, 0.14);
    --aannex-shadow: 0 22px 55px rgba(6, 27, 85, 0.16);
}

* {
    box-sizing: border-box;
}

body.aannex-auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--aannex-navy);
    background: linear-gradient( 135deg, var(--aannex-blue-1), var(--aannex-blue-2), var(--aannex-blue-4) );
    overflow-x: hidden;
}

.aannex-auth-shell {
    min-height: calc(100vh - 32px);
    padding: 24px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
}

.aannex-glass-panel,
.aannex-card {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    box-shadow: var(--aannex-shadow);
    backdrop-filter: blur(18px);
}

.aannex-glass-panel {
    position: relative;
    overflow: hidden;
    padding: 36px;
    background: radial-gradient( circle at 70% 45%, rgba(255, 255, 255, 0.72), transparent 32% ), linear-gradient( 135deg, rgba(209, 223, 246, 0.95), rgba(160, 191, 240, 0.82) );
}

    .aannex-glass-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 115deg, transparent 8%, rgba(255, 255, 255, 0.55) 42%, transparent 55% ), radial-gradient( circle at 55% 75%, rgba(255, 255, 255, 0.52), transparent 30% );
        opacity: 0.55;
        pointer-events: none;
    }

.aannex-content {
    position: relative;
    z-index: 1;
}

.aannex-logo {
    width: 210px;
    height: auto;
    display: block;
    margin-bottom: 40px;
}

.aannex-title {
    font-size: 44px;
    line-height: 1.12;
    font-weight: 800;
    margin: 0 0 16px;
}

    .aannex-title .red,
    .aannex-title span {
        color: var(--aannex-red);
    }

.aannex-subtitle,
.aannex-lead {
    font-size: 18px;
    line-height: 1.55;
    font-weight: 500;
    max-width: 430px;
    margin-bottom: 28px;
}

.aannex-underline,
.aannex-card-underline,
.aannex-red-line {
    width: 72px;
    height: 4px;
    background: var(--aannex-red);
    border-radius: 999px;
    margin: 16px 0 28px;
}

.aannex-feature {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 20px;
    align-items: center;
    margin: 22px 0;
}

.aannex-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(6, 27, 85, 0.12);
    font-size: 26px;
    color: #0b61d8;
}

    .aannex-icon.email {
        color: #1e3a8a;
    }

    .aannex-icon.cloud {
        color: #2563eb;
    }

.feature-icon {
    width: 26px;
    height: 26px;
    display: block;
}

.aannex-feature h3 {
    margin: 0 0 5px;
    font-size: 19px;
    font-weight: 800;
}

.aannex-feature p {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
    color: #08245f;
}

.aannex-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aannex-card {
    width: min(100%, 560px);
    padding: 48px 52px;
    background: rgba(255, 255, 255, 0.88);
}

    .aannex-card h1,
    .aannex-card h2 {
        font-size: 40px;
        margin: 0 0 10px;
        font-weight: 800;
    }

    .aannex-card .muted {
        font-size: 21px;
        color: #4a5d82;
        margin-bottom: 22px;
    }

.aannex-form-group,
.aannex-field {
    margin: 22px 0;
}

    .aannex-form-group label,
    .aannex-field label {
        display: block;
        font-weight: 800;
        margin-bottom: 10px;
    }

.aannex-input {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--aannex-border);
    border-radius: 13px;
    padding: 0 16px;
    font-size: 16px;
    color: var(--aannex-navy);
    background: rgba(255, 255, 255, 0.9);
}

    .aannex-input:focus {
        outline: none;
        border-color: #3478f6;
        box-shadow: 0 0 0 4px rgba(52, 120, 246, 0.13);
    }

.aannex-primary-btn {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ff2a3a, #e30613);
    color: white;
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(227, 6, 19, 0.28);
    cursor: pointer;
}

.aannex-link {
    color: var(--aannex-red);
    font-weight: 800;
    text-decoration: none;
}

/* Choose Plan page-only height control */
.choose-plan-page .aannex-auth-shell {
    min-height: calc(100vh - 32px);
    align-items: start;
}

.choose-plan-page .aannex-glass-panel,
.choose-plan-page .aannex-card {
    min-height: 520px;
    padding-bottom: 24px;
}

/* Mobile */
@media (max-width: 900px) {
    body.aannex-auth-page {
        min-height: auto;
        overflow-x: hidden;
    }

    .aannex-auth-shell {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 12px;
        gap: 12px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .aannex-glass-panel,
    .aannex-card {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        box-sizing: border-box;
    }

    .aannex-glass-panel {
        padding: 28px 22px;
    }

    .aannex-card {
        padding: 28px 22px;
    }

    .aannex-logo {
        width: 170px;
        margin-bottom: 32px;
    }

    .aannex-title {
        font-size: 34px;
    }

    .aannex-card h1,
    .aannex-card h2 {
        font-size: 34px;
    }

    .choose-plan-page .aannex-glass-panel,
    .choose-plan-page .aannex-card {
        min-height: auto;
    }

    .password-row {
        display: flex;
        gap: 10px;
        align-items: center;
    }

        .password-row .aannex-input {
            flex: 1;
        }

    .show-btn {
        min-width: 76px;
        min-height: 54px;
        border: 1px solid var(--aannex-border);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.9);
        color: var(--aannex-navy);
        font-weight: 800;
        cursor: pointer;
    }

    .password-rules,
    .security-note {
        margin: 18px 0;
        padding: 16px 18px;
        border-radius: 14px;
        background: rgba(248, 250, 252, 0.9);
        border: 1px solid var(--aannex-border);
    }

        .password-rules h4 {
            margin: 0 0 10px;
            font-weight: 800;
        }

        .password-rules ul {
            margin: 0;
            padding-left: 20px;
        }

        .password-rules li {
            margin-bottom: 5px;
        }

    .security-note {
        border-left: 4px solid var(--aannex-red);
        font-weight: 600;
    }
}

/* =========================================================
   AANNEX SecureMail - Outlook Task Pane
   Outlook-only compact professional layout.
   ========================================================= */

body.aannex-auth-page.outlook-taskpane {
    min-height: 100vh;
    overflow-x: hidden;
}

.outlook-taskpane .aannex-auth-shell {
    display: block;
    min-height: auto;
    padding: 12px;
}

.outlook-taskpane .aannex-glass-panel {
    padding: 20px;
    border-radius: 20px;
}

.outlook-taskpane .aannex-logo {
    width: 145px;
    margin-bottom: 18px;
}

.outlook-taskpane .aannex-title {
    font-size: 34px;
    line-height: 1.1;
    margin: 0 0 7px;
}

.outlook-taskpane .aannex-underline {
    width: 58px;
    height: 4px;
    margin: 9px 0 17px;
}

.outlook-taskpane .aannex-subtitle {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 18px;
}

.outlook-taskpane .aannex-card {
    width: 100%;
    min-height: auto;
    padding: 22px;
    border-radius: 20px;
}

    .outlook-taskpane .aannex-card h2 {
        font-size: 27px;
        line-height: 1.15;
        margin: 0 0 12px;
    }

    .outlook-taskpane .aannex-card .muted {
        font-size: 16px;
        line-height: 1.4;
        margin: 9px 0;
    }

.outlook-taskpane #secureSendButton {
    width: 100%;
    min-height: 48px;
    margin-top: 14px !important;
    font-size: 16px !important;
    border-radius: 11px !important;
}

.outlook-taskpane .security-note {
    margin: 14px 0 0;
    padding: 13px 14px;
    border-left: 4px solid var(--aannex-red);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
    border-top: 1px solid var(--aannex-border);
    border-right: 1px solid var(--aannex-border);
    border-bottom: 1px solid var(--aannex-border);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}
