* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#root {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background-color: #1877f2;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 396px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    color: #1c1e21;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #dddfe2;
    border-radius: 4px;
    background-color: white;
    color: #1c1e21;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #42a5f5;
    background-color: white;
}

.form-input::placeholder {
    color: #8a8d91;
}

.login-button {
    width: 100%;
    background-color: #1976d2;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    cursor: pointer;
    margin-top: 16px;
    transition: background-color 0.1s ease;
}

.login-button:hover {
    background-color: #1565c0;
}

.login-button:active {
    background-color: #0d47a1;
}

.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #42a5f5;
    font-size: 13px;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.footer {
    background-color: white;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #dadde1;
    margin-top: auto;
}

.footer-text {
    color: #8a8d91;
    font-size: 11px;
    margin-bottom: 12px;
}

.privacy-link {
    color: #42a5f5;
    font-size: 13px;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.question-mark {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #8a8d91;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    margin-left: 8px;
    font-weight: bold;
}

.loading {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.show-loading .button-text { display: none; }
.show-loading .loading { display: inline-block; }

/* Mobile responsiveness */
@media (max-width: 480px) {
    .header {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .main-container {
        padding: 20px 16px;
    }
    
    .login-container {
        padding: 24px;
        box-shadow: none;
        border-radius: 0;
    }
    
    body {
        background-color: white;
    }
}