:root {
    --bg-dark: #0b0e14;
    --bg-card: #151a25;
    --bg-input: #0b0e14;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --border-color: #2e3545;
    --radius-md: 0.75rem;
    --radius-sm: 0.5rem;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
    text-decoration: none;
}

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

button:hover {
    background-color: var(--primary-hover);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

.back-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 2rem;
        color: var(--text-gray);
        font-size: 0.9rem;
        transition: color 0.2s;
}

.back-link:hover {
        color: var(--text-white);
        text-decoration: none;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 90vw;
    animation: slideIn 0.3s ease-out forwards;
    font-size: 0.9rem;
}

.toast.hiding {
    animation: fadeOut 0.3s ease-in forwards;
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
