﻿:root {
    color-scheme: light;
    --base-900: #032457;
    --base-700: #0f2d62;
    --surface: #ffffff;
    --surface-border: rgba(3, 36, 87, 0.12);
    --surface-shadow: 0 8px 24px rgba(6, 25, 59, 0.08);
    --muted: #3f577d;
    --primary: #00a6e6;
    --primary-hover: #0496cd;
    --page-overlay: rgba(252, 250, 246, 0.55);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 40px 38px 14px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: var(--base-900);
    background-image:
        linear-gradient(180deg, var(--page-overlay), var(--page-overlay)),
        url("images/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.portal-shell {
    display: flex;
    align-items: stretch;
    gap: 34px;
    max-width: 1320px;
    margin: 0 auto;
}

.apps-grid {
    flex: 1.75;
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px 16px;
}

.card {
    display: flex;
    gap: 12px;
    min-height: 93px;
    padding: 12px 14px;
    border: 1px solid var(--surface-border);
    background: var(--surface);
    box-shadow: var(--surface-shadow);
    border-radius: 3px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(6, 25, 59, 0.14);
}

.icon-box {
    width: 79px;
    height: 79px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ffffff;
}

.icon-box svg {
    width: 100%;
    height: 100%;
}

.icon-box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card h2 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.card p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.25;
}

.links {
    margin-top: auto;
    padding-top: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.links a {
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.74rem;
}

.links a:first-child {
    color: #119ed6;
}

.links a:last-child {
    color: #ffffff;
    background: var(--primary);
    border-radius: 3px;
    padding: 5px 10px;
    font-weight: 500;
    transition: background-color 0.18s ease;
}

.links a:last-child:hover {
    background: var(--primary-hover);
}

.welcome-panel {
    flex: 1;
    max-width: 400px;
    background: #ffffff;
    border: 1px solid var(--surface-border);
    box-shadow: var(--surface-shadow);
    padding: 24px 52px;
    min-height: 420px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 24px;
}

.welcome-title {
    margin: 0;
    font-size: clamp(2rem, 2.8vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--base-700);
}

.welcome-title strong {
    font-weight: 700;
    display: block;
    line-height: 1.08;
}

.welcome-desc {
    margin: 24px 0 0;
    color: #27416c;
    line-height: 1.5;
    font-size: 0.95rem;
}

.footer {
    max-width: 1320px;
    margin: 38px auto 0;
    text-align: center;
    font-size: 0.74rem;
    color: #51607a;
}

.footer p {
    margin: 0;
}

.footer a {
    color: inherit;
    margin-left: 12px;
}

@media (max-width: 1180px) {
    .portal-shell {
        flex-direction: column-reverse;
    }

    .welcome-panel {
        max-width: none;
        min-height: auto;
        padding: 34px 28px;
    }
}

@media (max-width: 860px) {
    body {
        padding: 20px 14px 14px;
        min-height: auto;
        justify-content: flex-start;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: 110px;
        padding: 12px;
    }

    .icon-box {
        width: 62px;
        height: 62px;
    }

    .icon-box svg {
        width: 100%;
        height: 100%;
    }

    .icon-box img {
        width: 100%;
        height: 100%;
    }

    .links {
        gap: 8px;
    }

    .welcome-desc {
        font-size: 0.9rem;
    }
}
