* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-wrapper {
    width: 500px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 50px 40px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-card {
    width: 100%;
    text-align: center;
}

.login-card h1 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease-out 0.4s backwards;
}

@keyframes fadeInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.subtitle {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1rem;
    animation: fadeIn 0.8s ease-out 0.5s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
    animation: shake 0.5s, fadeIn 0.3s;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-10px);
    }
    40%, 80% {
        transform: translateX(10px);
    }
}

.shake {
    animation: shake 0.5s;
}

.login-form {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
    transform: translateY(-2px);
}

.input-group input::placeholder {
    color: #adb5bd;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(-1px);
}

.footer-note {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    animation: fadeIn 0.8s ease-out 0.8s backwards;
}

.footer-note p {
    color: #6c757d;
    font-size: 12px;
}

@media (max-width: 968px) {
    .login-wrapper {
        width: 90%;
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        width: 95%;
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .login-card h1 {
        font-size: 2.2rem;
    }
    
    .input-group input,
    .login-btn {
        padding: 12px;
        font-size: 14px;
    }
}