:root {
    --bg-dark: #0f1116;
    --sidebar-bg: #161920;
    --accent-color: #cafe6e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: #e9ecef;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background-color: var(--sidebar-bg);
    border: 1px solid #2d323c;
    border-radius: 12px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #e9ecef;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(222, 226, 230, 0.75);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid #2d323c;
    border-radius: 8px;
    color: #e9ecef;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #6c757d;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(202, 254, 110, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    color: #0f1116;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: #b3e35d;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.error {
    background: #2c0b0e;
    border: 1px solid rgba(220, 53, 69, 0.25);
    color: rgba(220, 53, 69, 1);
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.divider {
    height: 1px;
    background: #2d323c;
    margin: 1.5rem 0;
}

.footer {
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
}

@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: none;
        border-radius: 8px;
    }

    .logo h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.1rem;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid transparent;
    border-top-color: #0f1116;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
