@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    50%, 100% {
        box-shadow: 0 12px 30px rgba(0, 206, 243, 0.08), 0 0 20px rgba(3, 243, 223, 0.3);
    }
    50% {
        box-shadow: 0 12px 40px rgba(209, 4, 220, 0.547), 0 0 35px rgba(27, 235, 0, 0.5);
    }
}

@keyframes rotateWolf {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: rotateX(15deg) rotateY(45deg) rotateZ(10deg);
    }
    50% {
        transform: rotateX(-15deg) rotateY(90deg) rotateZ(-10deg);
    }
    75% {
        transform: rotateX(15deg) rotateY(135deg) rotateZ(10deg);
    }
    100% {
        transform: rotateX(0deg) rotateY(360deg) rotateZ(0deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #eef7ff 0%, #dfe8ff 45%, #f5f3ff 100%);
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
}

.wolf-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wolf-3d {
    position: absolute;
    width: 320px;
    height: 320px;
    animation: rotateWolf 10s linear infinite, float 4s ease-in-out infinite;
    opacity: 0.18;
    filter: blur(1px);
}

.wolf-head {
    width: 100%;
    height: 100%;
}

.wolf-head img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(0, 131, 255, 0.4));
}

.login-form {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(12, 39, 78, 0.1);
    border-radius: 28px;
    padding: 30px 26px 24px;
    width: min(92vw, 430px);
    box-shadow: 0 18px 45px rgba(23, 37, 84, 0.12);
    backdrop-filter: blur(8px);
    animation: slideIn 0.6s ease-out, pulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.login-form:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.12);
}

.form-header {
    text-align: center;
    margin-bottom: 18px;
}

.form-header h1 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    color: #0f172a;
}

.form-header p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.field {
    margin-bottom: 18px;
    animation: slideIn 0.6s ease-out;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1e293b;
}

label i {
    color: #2563eb;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 14px 14px;
    border: 1px solid #dbe3f0;
    background: rgba(248, 250, 252, 0.9);
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    border-radius: 12px;
    color: #0f172a;
}

input::placeholder {
    color: #94a3b8;
}

input:focus {
    background-color: #ffffff;
    border-color: #60a5fa;
    outline: none;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
    transform: translateY(-1px);
}

button {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.28);
}

button:active {
    transform: translateY(0);
}

.error {
    color: #dc2626;
    margin: 8px 0 0;
    font-size: 13px;
    min-height: 16px;
    animation: slideIn 0.3s ease-out;
}

.ok {
    color: #16a34a;
    margin: 0;
}

@media (max-width: 440px) {
    body {
        padding: 16px;
    }

    .login-form {
        padding: 22px 18px 18px;
        border-radius: 22px;
    }

    input {
        font-size: 15px;
    }
}
