* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    position: relative;
    z-index: 2;
}

.login-card {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 30px;
    font-weight: 700;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: none;
    outline: none;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group input:valid {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.input-group input:focus + label,
.input-group input:valid + label {
    transform: translateY(-25px);
    font-size: 12px;
    color: #23a6d5;
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #23a6d5, #23d5ab);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: scale(0.98);
}

.alternate-login {
    margin-top: 30px;
    text-align: center;
}

.alternate-login p {
    color: #666;
    margin-bottom: 15px;
    position: relative;
}

.alternate-login p:before,
.alternate-login p:after {
    content: "";
    display: block;
    width: 25%;
    height: 1px;
    background: #ddd;
    position: absolute;
    top: 50%;
}

.alternate-login p:before {
    left: 0;
}

.alternate-login p:after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-buttons button i {
    font-size: 20px;
    color: #333333c2;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    border-radius: 50%;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* Loading effect */
.loading span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.91);
    border-radius: 50%;
    display: inline-block;
    animation: loading 1.5s infinite ease-in-out both;
    margin: 0 2px;
}

.loading span:nth-child(1) {
    animation-delay: -0.3s;
}

.loading span:nth-child(2) {
    animation-delay: -0.15s;
}

@keyframes loading {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .login-card {
        width: 90%;
        padding: 30px;
    }
}