@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --accent: #246BCE;
    --accent-dim: #1a518f;
    --accent-glow: rgba(36,107,206,0.18);
    --bg: #0b0d10;
    --surface: #12151a;
    --surface2: #1a1e26;
    --border: rgba(255,255,255,0.07);
    --text: #f0f2f5;
    --muted: #8891a0;
    --radius: 12px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    background-image: 
        linear-gradient(rgba(36, 107, 206, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 107, 206, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-box {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: shine 8s linear infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.logo-icon {
    width: 64px;
    height: 64px;
    stroke: var(--accent);
    margin-bottom: 1rem;
}

.login-header h1 {
    color: var(--text);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    font-family: 'Syne', sans-serif;
}

.subtitle {
    color: var(--muted);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}

.login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.tab-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: currentColor;
}

.tab-btn:hover {
    background: #1f2430;
    color: var(--text);
}

.tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.tab-content {
    display: none;
    position: relative;
    z-index: 1;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.discord-login {
    text-align: center;
    padding: 1rem 0;
}

.login-description {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.discord-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: #5865F2;
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.discord-btn svg {
    width: 22px;
    height: 22px;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.credentials-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
}

.form-group input {
    padding: 14px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: #1f2430;
}

.form-group input::placeholder {
    color: #5a6475;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
    margin-top: 0.5rem;
}

.submit-btn svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.submit-btn:hover {
    background: #2e7de6;
    transform: translateY(-2px);
}

#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}
