﻿:root {
    --bg-top: #07111f;
    --bg-bottom: #12324d;
    --panel: rgba(9, 20, 33, 0.68);
    --line: rgba(255, 255, 255, 0.12);
    --text: #f4f7fb;
    --muted: #b5c3d1;
    --accent: #7ef0c4;
    --danger: #ff7d7d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Space Grotesk", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(126, 240, 196, 0.18), transparent 26%),
        linear-gradient(135deg, var(--bg-top), var(--bg-bottom));
}

.portal-shell {
    min-height: 100vh;
    padding: 48px 0 24px;
}

.hero-section {
    margin-bottom: 32px;
}

.hero-panel,
.login-panel {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.hero-panel-split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.logged-user {
    color: var(--muted);
}

.logout-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
}

.hero-copy {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.05rem;
}

.app-card {
    display: block;
    height: 100%;
    color: inherit;
}

.card-backdrop {
    min-height: 360px;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-backdrop:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
}

.card-content {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    padding: 28px;
}

.card-content h2 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
}

.card-content p,
.login-copy p {
    margin: 0;
    color: #e6eef7;
    line-height: 1.55;
}

.status-tag {
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(126, 240, 196, 0.18);
    border: 1px solid rgba(126, 240, 196, 0.36);
    color: #dffcf2;
    font-size: 0.84rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.open-link {
    color: var(--accent);
    font-weight: 700;
}

.editor-note {
    padding: 24px 26px;
    border: 1px dashed var(--line);
    border-radius: 24px;
    background: rgba(8, 17, 29, 0.46);
}

.editor-note p {
    margin: 0;
    color: var(--muted);
}

.editor-note code {
    color: #ffffff;
}

.login-shell {
    display: flex;
    align-items: center;
}

.login-panel {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
}

.login-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.7rem);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(4, 11, 20, 0.58);
}

.form-label {
    color: var(--muted);
}

.form-control {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.form-control:focus {
    border-color: rgba(126, 240, 196, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(126, 240, 196, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.btn-accent {
    background: var(--accent);
    color: #04111d;
    border: none;
    font-weight: 700;
}

.btn-accent:hover {
    background: #66dfb1;
    color: #04111d;
}

.alert-danger {
    background: rgba(255, 125, 125, 0.12);
    border-color: rgba(255, 125, 125, 0.4);
    color: #ffd9d9;
}

@media (max-width: 991.98px) {
    .hero-panel-split,
    .login-panel {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero-actions {
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .portal-shell {
        padding-top: 24px;
    }

    .hero-panel,
    .editor-note,
    .login-panel {
        padding: 22px;
    }

    .login-form {
        padding: 20px;
    }

    .card-backdrop,
    .card-content {
        min-height: 300px;
    }
}
