:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --gray: #64748b;
    --light: #f8fafc;
    --dark: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.login-container {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.05);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #3b82f6, #06b6d4);
}

.login-header {
    margin-bottom: 2.5rem;
}

.logo-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-icon svg {
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.3));
    transition: transform 0.3s ease;
}

.logo-icon svg:hover {
    transform: scale(1.05);
}

.login-container h1 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.login-container p {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.alert {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

.alert-danger {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

small {
    color: var(--gray);
    font-size: 0.875rem;
}

@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .login-container h2 {
        font-size: 1.5rem;
    }
}
