:root {
    --primary-color: #6f82ff;
    --primary-color-hover: #764ba2;
    --glass-bg: rgba(20, 25, 45, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 15px rgba(111, 130, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0e1525;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #0e1525;
}

nav.navbar {
    background: rgba(14, 21, 37, 0.85);
}

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: var(--neon-glow), 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.auth-header p {
    color: #a5b4fc;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
}

.token-input-wrapper {
    position: relative;
}

.token-input {
    width: 100%;
    background: rgba(14, 21, 37, 0.85);
    border: 2px solid #6f82ff33;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    color: #fff;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.token-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(111, 130, 255, 0.2);
}

.token-input::placeholder {
    color: #6c757d;
    letter-spacing: normal;
}

.show-token-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #a5b4fc;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
}

.show-token-btn:hover {
    color: var(--primary-color);
}

.token-hint {
    font-size: 0.85rem;
    color: #8b93ff;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.char-count {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: right;
    margin-top: 0.25rem;
}

.char-count.valid {
    color: #10b981;
}

.char-count.warning {
    color: #f59e0b;
}

.btn-vnm-prim {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-vnm-prim:hover {
    background: var(--primary-color-hover);
}

.success-message, .error-message {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-align: center;
}

.success-message i { font-size: 3rem; color: #10b981; margin-bottom: 0.5rem; }

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    text-align: left;
}

.auth-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-links a:hover { color: #818cf8; }

.security-notice {
    font-size: 0.85rem;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    color: #8b93ff;
    font-size: 0.85rem;
}
