* {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
}

.page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    background: linear-gradient(135deg, #4f7fcf, #6fa1ff); /* светлый синий градиент */
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #ffffff;
    padding: 40px 30px 30px 30px;
    border-radius: 16px;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* мягкая тень */
    position: relative;
}

.login-card h1 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: #ffffff;
    padding: 0 5px;
    font-size: 12px;
    color: #555;
    pointer-events: none;
}

.input-group input:focus {
    border-color: #1d4ed8;
}

.login-card button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #1d4ed8;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-card button:hover {
    background: #1e40af;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
}

footer {
    height: 50px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shake {
    animation: shake 0.3s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}
