* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}

body {
    width: 100vw;
    height: 100vh;
    background: #f2f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-page {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: #ffffff;
    padding: 44px 36px 36px;
    border-radius: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-header {
    margin-bottom: 28px;
}

.login-icon {
    font-size: 2.8rem;
    color: #4a6fa5; /* muted blue */
    margin-bottom: 6px;
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 500;
    color: #1e293b;
    letter-spacing: -0.3px;
}

.device-info {
    font-size: 0.95rem;
    color: #64748b;
    margin-top: 4px;
}

.device-info i {
    color: #4a6fa5;
    margin-right: 6px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 40px;
    padding: 0 18px;
    border: 1px solid #e2e8f0;
    transition: 0.2s;
}

.input-group:focus-within {
    border-color: #4a6fa5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.input-group i {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-right: 12px;
}

.input-group input {
    background: transparent;
    border: none;
    padding: 16px 0;
    font-size: 1rem;
    width: 100%;
    outline: none;
    color: #1e293b;
}

.input-group input::placeholder {
    color: #b0b8c4;
}

.login-btn {
    background: #4a6fa5;
    border: none;
    padding: 16px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.2);
}

.login-btn:hover {
    background: #3b5d8a;
    transform: scale(1.01);
}

.login-btn:active {
    transform: scale(0.98);
}

.login-error {
    color: #b91c1c;
    font-size: 0.9rem;
    min-height: 24px;
    margin-top: 2px;
}

.login-footer {
    margin-top: 20px;
    color: #94a3b8;
    font-size: 0.85rem;
    border-top: 1px solid #eef2f6;
    padding-top: 16px;
}

.login-footer i {
    color: #4a6fa5;
    margin-right: 6px;
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}