:root {
    --panel-bg: rgba(10, 18, 36, 0.94);
    --panel-border: rgba(96, 165, 250, 0.16);
    --text-main: #edf4ff;
    --text-muted: #9eb0cb;
}

* {
    box-sizing: border-box;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 24%),
        radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.12), transparent 22%),
        linear-gradient(180deg, #040914 0%, #07111f 36%, #09182e 100%);
    color: var(--text-main);
}

.container {
    max-width: 920px;
    margin: 32px auto;
    background: linear-gradient(180deg, rgba(10, 18, 36, 0.96) 0%, rgba(8, 17, 34, 0.92) 100%);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.46);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: -0.04em;
    color: #f8fbff;
}

p {
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 20px;
}

.topbar,
.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar {
    justify-content: flex-end;
    margin-bottom: 20px;
}

.card {
    border: 1px solid var(--panel-border);
    border-radius: 22px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(13, 25, 49, 0.96) 0%, rgba(9, 18, 36, 0.92) 100%);
    margin-top: 18px;
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.24);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.summary-item {
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 18px;
    padding: 16px;
    background: rgba(7, 16, 31, 0.78);
}

.summary-label {
    display: block;
    font-size: 11px;
    color: #89a2c8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    font-weight: 800;
}

.summary-value {
    font-size: 20px;
    font-weight: 900;
    color: #f8fbff;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.summary-email {
    display: block;
    font-size: 17px;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 16px;
    font-size: 16px;
    margin-bottom: 12px;
    background: rgba(6, 12, 24, 0.78);
    color: #f8fbff;
}

input::placeholder {
    color: #6f86aa;
}

.button-link,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.24);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.button-secondary {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    box-shadow: 0 16px 28px rgba(20, 184, 166, 0.18);
}

.button-link:hover,
button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.status {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.5;
}

.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(10, 18, 36, 0.9) 100%);
    color: #d9e8ff;
    border: 1px solid rgba(96, 165, 250, 0.24);
}

.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.14) 0%, rgba(11, 24, 28, 0.88) 100%);
    color: #c8ffd9;
    border: 1px solid rgba(74, 222, 128, 0.34);
}

.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(28, 12, 18, 0.9) 100%);
    color: #ffd4d4;
    border: 1px solid rgba(248, 113, 113, 0.28);
}

.empty-state {
    padding: 18px;
    border: 1px dashed rgba(96, 165, 250, 0.18);
    border-radius: 16px;
    background: rgba(8, 15, 30, 0.68);
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

@media (max-width: 760px) {
    .container {
        margin: 16px;
        padding: 20px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .button-group .button-link,
    .button-group button,
    .topbar .button-link,
    .topbar button {
        width: 100%;
    }
}
