:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    color: #17233c;
    background: #07142c;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background:
        linear-gradient(rgba(4, 16, 40, 0.38), rgba(4, 16, 40, 0.62)),
        url("../img/earth.jpeg") center / cover no-repeat fixed;
}

.portal-card {
    width: min(100%, 520px);
    padding: 38px;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border-top: 4px solid #0876ce;
    border-radius: 10px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.portal-logo {
    display: block;
    width: min(210px, 70%);
    max-height: 180px;
    margin: 0 auto 22px;
    object-fit: contain;
}

h1 {
    margin: 0;
    color: #086fc2;
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    line-height: 1.2;
}

.portal-intro {
    margin: 10px 0 28px;
    color: #596579;
    font-size: 1rem;
}

.portal-actions {
    display: grid;
    gap: 14px;
}

.portal-button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 7px;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.portal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 77, 139, 0.18);
}

.portal-button:focus-visible {
    outline: 3px solid #ffca28;
    outline-offset: 3px;
}

.portal-button-primary {
    color: #fff;
    background: #0876ce;
}

.portal-button-primary:hover {
    background: #0668b7;
}

.portal-button-secondary {
    color: #075f9f;
    background: #fff;
    border-color: #8bbce0;
}

.portal-button-secondary:hover {
    background: #eef7fd;
}

.portal-button-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.portal-button-description {
    font-size: 0.88rem;
    opacity: 0.9;
}

@media (max-width: 520px) {
    .portal-card {
        padding: 28px 20px;
    }
}