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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #343541;
    color: #ececf1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: #444654;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #565869;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 { 
    font-size: 2.5rem; 
    margin-bottom: 10px; 
    color: #ececf1; 
}

.logo p { 
    color: #8e8ea0; 
    font-size: 1.1rem; 
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label {
    display: block;
    color: #ececf1;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #565869;
    border-radius: 8px;
    background: #2d2d2d;
    color: #ececf1;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4aa;
    background: #333;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.login-button {
    width: 100%;
    padding: 14px;
    background: #00d4aa;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s, transform 0.2s;
    position: relative;
}

.login-button:hover:not(:disabled) {
    background: #00b894;
    transform: translateY(-1px);
}

.login-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.login-button:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #565869;
    display: none;
}

.error-message {
    background: #2d2d2d;
    color: #ff6b6b;
}

.success-message {
    background: #2d2d2d;
    color: #00d4aa;
}