@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&family=Creepster&display=swap");

:root {
    --bg: radial-gradient(circle at 20% 20%, rgba(255, 105, 0, 0.12), transparent 55%),
          radial-gradient(circle at 80% 10%, rgba(105, 0, 225, 0.15), transparent 65%),
          linear-gradient(180deg, #020008 0%, #0b0315 45%, #020008 100%);
    --primary: #ff6b1a;
    --primary-strong: #ff8b2d;
    --accent: #5b2cff;
    --text: #f7f4ff;
    --muted: rgba(247, 244, 255, 0.72);
    --glass: rgba(18, 10, 26, 0.75);
    --border: rgba(255, 107, 26, 0.42);
    --border-strong: rgba(255, 139, 45, 0.6);
    --shadow: 0 30px 70px rgba(5, 0, 15, 0.75);
    --radius-lg: 22px;
    --radius-md: 14px;
    --blur: blur(18px);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg);
    font-family: "Poppins", sans-serif;
    color: var(--text);
}

.container {
    position: relative;
    width: min(480px, 100%);
    padding: 46px 42px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--glass);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.container::before,
.container::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 107, 26, 0.25), transparent 70%);
    filter: blur(4px);
    z-index: -1;
}

.container::before {
    top: -70px;
    right: -70px;
    transform: rotate(30deg);
}

.container::after {
    bottom: -70px;
    left: -70px;
    transform: rotate(-18deg);
}

h1 {
    font-family: "Creepster", cursive;
    font-size: 2.8rem;
    letter-spacing: 1px;
    margin: 0 0 14px;
    color: var(--primary);
    text-shadow: 0 0 24px rgba(255, 107, 26, 0.35);
}

p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.6;
}

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: rgba(10, 4, 18, 0.78);
    color: var(--text);
    font-size: 1rem;
    transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(247, 244, 255, 0.4);
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.2);
    transform: translateY(-1px);
}

button {
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
    color: #1a0410;
    font-weight: 600;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(255, 107, 26, 0.38);
}

button:active {
    transform: translateY(0);
}

.error-message {
    background: rgba(255, 84, 84, 0.15);
    border: 1px solid rgba(255, 84, 84, 0.38);
    color: #ffc8c8;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.token-box {
    margin-top: 24px;
    padding: 20px 18px;
    border-radius: var(--radius-lg);
    background: rgba(9, 3, 18, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(91, 44, 255, 0.15);
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    word-break: break-word;
}

.flag-highlight {
    margin-top: 26px;
    padding: 18px 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 107, 26, 0.2), rgba(91, 44, 255, 0.22));
    border: 1px solid rgba(255, 107, 26, 0.35);
    box-shadow: inset 0 0 18px rgba(255, 107, 26, 0.18);
    color: var(--text);
}

.flag-highlight strong {
    color: var(--primary);
}

.footer-note {
    margin-top: 26px;
    font-size: 0.85rem;
    color: rgba(247, 244, 255, 0.55);
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

@media (max-width: 520px) {
    body {
        padding: 26px 16px;
    }

    .container {
        padding: 34px 28px;
    }

    h1 {
        font-size: 2.3rem;
    }
}
