/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e2e8f0;
    background: radial-gradient(ellipse at top, #0f2043 0%, #081124 55%, #050b1a 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background layers */
.world-map {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: radial-gradient(rgba(96,165,250,0.4) 1px, transparent 1px);
    background-size: 6px 6px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    pointer-events: none;
}

.constellation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.starfield {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Layout */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.grid {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 28px;
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Brand - centered on top */

.logo-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 28px rgba(59,130,246,0.55), 0 0 60px rgba(59,130,246,0.25);
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px; /* Space between logo and text */
}

.brand-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    margin-top: 14px;
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

    .brand-title .accent {
        color: #3b82f6;
    }

.brand-subtitle {
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

.badge {
    margin-top: 8px;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
}


/* Left / Right columns */
.left-col {
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .left-col {
        justify-content: flex-end;
    }
}

/* Connection Info card */
/* Connection Info card */
.info-card {
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(15,32,67,0.75) 0%, rgba(10,20,46,0.75) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 12px;
    border-bottom: 1px solid rgba(59,130,246,0.1);
}

.info-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(37,99,235,0.2);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .info-icon svg {
        width: 16px;
        height: 16px;
    }

.info-header h2 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.info-list {
    list-style: none;
    padding: 6px 10px 8px;
}

    .info-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 7px 10px;
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }

        .info-list li:hover {
            background: rgba(59,130,246,0.08);
        }

.info-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-size: 13px;
}

    .info-left .i {
        width: 14px;
        height: 14px;
        color: #94a3b8;
    }

.info-val {
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 500;
}

/* Right column */
.right-col {
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .right-col {
        justify-content: flex-start;
    }
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 28px 30px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    color: #0f172a;
}

.shield {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
}

    .shield svg {
        width: 26px;
        height: 26px;
    }

.welcome {
    text-align: center;
    margin-top: 14px;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.subtitle {
    text-align: center;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

.underline {
    width: 52px;
    height: 3px;
    margin: 10px auto 0;
    background: #2563eb;
    border-radius: 999px;
}

form {
    margin-top: 18px;
}

.field-label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .field:focus-within {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
    }

.field-icon {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    flex-shrink: 0;
}

.field input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #0f172a;
    font-family: inherit;
}

    .field input[type="password"] {
        letter-spacing: 0.2em;
    }

.eye-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    display: flex;
}

    .eye-btn:hover {
        color: #475569;
    }

.eye {
    width: 18px;
    height: 18px;
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

    .checkbox input {
        width: 14px;
        height: 14px;
        accent-color: #2563eb;
        cursor: pointer;
    }

    .checkbox span {
        font-size: 13px;
        color: #475569;
    }

.link {
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

    .link:hover {
        color: #1d4ed8;
    }

.btn-primary {
    margin-top: 18px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 25px -5px rgba(37,99,235,0.5);
    }

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 300;
}


    .divider::before, .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e2e8f0;
    }

    .divider span {
        flex-shrink: 0;
    }

.secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: 11px;
}

    .secure svg {
        color: #2563eb;
    }

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px 16px;
    color: #94a3b8;
    font-size: 14px;
}

    .footer .accent {
        color: #3b82f6;
        font-weight: 600;
    }

/* Responsive tweaks */
@media (max-width: 640px) {
    .brand-title {
        font-size: 44px;
    }

    .login-card {
        padding: 28px 24px;
    }
}


.login-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 360px;
    background: #fff;
    border-left: 5px solid #dc3545;
    color: #333;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,.18);
    display: flex;
    gap: 12px;
    z-index: 999999;
    animation: fadeDown .35s;
}

    .login-toast i {
        color: #dc3545;
        font-size: 22px;
    }


.access-denied {
    text-align: center;
    padding: 40px 15px;
}

.access-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #ffe5e5;
    color: #dc3545;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    margin-bottom: 25px;
}