/* ─── Utena Palette ─────────────────────────────────────────────── */
/* Accent:  #6B2FA0 / #F5A623   |   Background: #1A1A2E           */
/* ─────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Inter",
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 1rem;
    background: #1a1a2e;
    color: #e8e6f0;
    min-height: 100vh;
    line-height: 1.5;
}

/* ─── Header ─────────────────────────────────────────────────── */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #e8e6f0;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.header-logo .logo-icon {
    width: 32px;
    height: 32px;
    display: block;
    flex-shrink: 0;
}

.header-nav {
    display: flex;
    gap: 0.25rem;
}

.header-nav a {
    text-decoration: none;
    color: #8b87a0;
    font-size: 0.88rem;
    font-weight: 450;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition:
        color 0.15s,
        background 0.15s;
}

.header-nav a:hover {
    color: #e8e6f0;
    background: rgba(255, 255, 255, 0.04);
}

.header-nav a.active {
    color: #c8a8f0;
    background: rgba(107, 47, 160, 0.12);
}

/* ─── Layout ──────────────────────────────────────────────────── */

main {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 1rem 2rem;
}

.card {
    background: #22223a;
    border-radius: 14px;
    padding: 2.5rem 2rem;
    min-width: 370px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    animation: fadeUp 0.35s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card h1,
.card h2 {
    margin: 0 0 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #e8e6f0;
}

.card h1 {
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}
.card h2 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    font-weight: 550;
}

.section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ─── Brand ──────────────────────────────────────────────────── */

.brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.brand h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #e8e6f0;
}

.brand .subtitle {
    font-size: 0.82rem;
    color: #6b6890;
    margin-top: 0.3rem;
}

/* ─── Buttons ─────────────────────────────────────────────────── */

button {
    border: none;
    background: #2e2e4a;
    color: #d0cce0;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    border-radius: 9px;
    cursor: pointer;
    transition:
        background 0.15s,
        transform 0.1s;
    width: 100%;
    line-height: 1.4;
}

button:hover {
    background: #3a3a5a;
}

button:active {
    transform: scale(0.98);
}

button.primary {
    background: linear-gradient(135deg, #df8c1a, #f5a623);
    color: #1a1a2e;
    font-weight: 600;
}

button.primary:hover {
    background: linear-gradient(135deg, #c97d14, #e89918);
    box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.25);
}

button.secondary {
    background: transparent;
    border: 1px solid #3a3a5a;
    color: #8b87a0;
}

button.secondary:hover {
    border-color: #6b2fa0;
    color: #c8a8f0;
    background: rgba(107, 47, 160, 0.06);
}

button.danger {
    background: transparent;
    border: 1px solid #3a3a5a;
    color: #8b87a0;
}

button.danger:hover {
    border-color: #c890a8;
    color: #e8a0c8;
    background: rgba(232, 160, 200, 0.05);
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

button + button {
    margin-top: 0.5rem;
}

/* ─── Inputs ──────────────────────────────────────────────────── */

input[type="text"],
input[type="email"],
input[type="password"] {
    background: #1a1a2e;
    color: #e8e6f0;
    border: 1px solid #2e2e4a;
    outline: none;
    border-radius: 9px;
    font-size: 0.9rem;
    padding: 0.7rem 0.85rem;
    width: 100%;
    transition: border-color 0.15s;
}

input:focus {
    border-color: #6b2fa0;
}

input::placeholder {
    color: #4a4870;
}

label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: #6b6890;
    margin-bottom: 0.35rem;
}

/* ─── Spacer ──────────────────────────────────────────────────── */

.spacer {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 1.25rem 0;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 1.25rem 0;
}

/* ─── Messages ────────────────────────────────────────────────── */

.message {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    color: #e8a0c8;
    text-align: center;
    min-height: 1.2em;
}

.message.success {
    color: #b8d890;
}

/* ─── Links ────────────────────────────────────────────────────── */

a {
    color: #7b68a0;
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: #a888d0;
}

/* ─── Typography helpers ──────────────────────────────────────── */

ul {
    margin: 0.25rem 0;
    padding-left: 1.1rem;
    color: #8b87a0;
    font-size: 0.88rem;
    line-height: 1.7;
}

ul li strong {
    color: #d0cce0;
}

p {
    color: #6b6890;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0.4rem 0;
}

/* ─── Footer ─────────────────────────────────────────────────── */

.footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: #4a4870;
}

/* ─── Responsive ──────────────────────────────────────────────── */

@media (max-width: 480px) {
    .card {
        min-width: 0;
        padding: 1.8rem 1.2rem;
        border-radius: 12px;
    }

    .header-inner {
        padding: 0 1rem;
    }

    .header-nav a {
        font-size: 0.82rem;
        padding: 0.3rem 0.55rem;
    }
}
