:root {
    --blue:#0b4ea2;
    --deep:#061b44;
    --orange:#ff7a18;
    --gold:#ffd166;
    --soft:#f4f8ff;
    --dark:#111827;
}

* {
    box-sizing:border-box;
}

html, body {
    margin:0;
    height:100%;
    font-family:"Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(25,199,255,0.20), transparent 35%),
        radial-gradient(circle at bottom right, rgba(255,122,24,0.22), transparent 35%),
        var(--soft);
    color:var(--dark);
}

body {
    overflow:hidden;
}

.site-header {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:105px;
    z-index:9999;
    background:linear-gradient(135deg,var(--deep),var(--blue));
    color:white;
    border-bottom:5px solid var(--orange);
}

.site-header-inner {
    height:100%;
    padding:18px 42px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.site-brand {
    color:white;
    text-decoration:none;
}

.site-brand h1 {
    margin:0;
    font-size:30px;
}

.site-brand p {
    margin:6px 0 0;
    color:var(--gold);
}

.site-nav a {
    color:white;
    text-decoration:none;
    font-weight:800;
    margin-left:20px;
    padding:10px 16px;
    border-radius:24px;
}

.site-nav a:hover {
    background:var(--orange);
}

.site-main {
    position:fixed;
    top:105px;
    bottom:62px;
    left:0;
    right:0;
    overflow-y:auto;
    padding:36px 28px;
}

.site-footer {
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    height:62px;
    background:linear-gradient(135deg,var(--deep),var(--blue));
    color:white;
    border-top:5px solid var(--orange);
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
}

.auth-wrap {
    min-height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.auth-card {
    width:430px;
    max-width:94%;
    background:white;
    padding:34px;
    border-radius:26px;
    box-shadow:0 20px 50px rgba(0,0,0,0.18);
    border-top:7px solid var(--orange);
}

.auth-card h1 {
    margin:0 0 10px;
    text-align:center;
    color:var(--blue);
    font-size:34px;
}

.auth-card p {
    text-align:center;
}

.auth-card input {
    width:100%;
    padding:14px;
    margin-bottom:14px;
    border-radius:14px;
    border:1px solid #cbd5e1;
    font-size:15px;
}

.auth-card button {
    width:100%;
    padding:14px;
    border:0;
    border-radius:16px;
    background:var(--orange);
    color:white;
    font-weight:800;
    font-size:16px;
    cursor:pointer;
}

.auth-card button:hover {
    background:var(--gold);
    color:var(--deep);
}

.error {
    background:#fee2e2;
    color:#991b1b;
    padding:10px;
    border-radius:12px;
    margin-bottom:14px;
    text-align:center;
}

.success {
    background:#dcfce7;
    color:#166534;
    padding:10px;
    border-radius:12px;
    margin-bottom:14px;
    text-align:center;
}

.portal-hero {
    max-width:1150px;
    margin:0 auto;
    text-align:center;
    color:white;
}

.app-grid {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:26px;
    margin-top:30px;
}

.app-card {
    background:white;
    color:var(--dark);
    border-radius:28px;
    overflow:hidden;
    text-decoration:none;
    box-shadow:0 18px 45px rgba(0,0,0,0.20);
}

.app-image {
    height:210px;
    background-size:cover;
    background-position:center;
}

.app-body {
    padding:28px;
}

.app-body h3 {
    margin:0 0 10px;
    color:var(--blue);
}

.login-note {
    display:inline-block;
    background:var(--orange);
    color:white;
    padding:10px 18px;
    border-radius:24px;
    font-weight:800;
}

@media(max-width:800px) {
    .site-header {
        height:120px;
    }

    .site-header-inner {
        display:block;
        text-align:center;
        padding:14px;
    }

    .site-brand h1 {
        font-size:26px;
    }

    .site-nav {
        margin-top:10px;
    }

    .site-nav a {
        margin:3px;
        display:inline-block;
    }

    .site-main {
        top:120px;
        bottom:62px;
        padding:24px 18px;
    }

    .app-grid {
        grid-template-columns:1fr;
    }
}
.app-choice {
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    border:1px solid #e5e7eb;
    border-radius:14px;
    margin-bottom:10px;
}

.app-choice input {
    width:auto;
    margin:0;
}

.app-choice img {
    width:38px;
    height:38px;
    object-fit:contain;
}