@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    overflow: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* Floating shapes */
.shape {
    position: absolute;
    opacity: 0.2;
    animation: float 15s infinite ease-in-out;
}

.shape.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid #fff;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.shape.square {
    width: 80px;
    height: 80px;
    background: #fff;
    top: 30%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-40px) rotate(10deg);
    }
}

/* Bubbles */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rise 15s infinite linear;
}

.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-duration: 8s;
}

.bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 20%;
    animation-duration: 5s;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 35%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubble:nth-child(4) {
    width: 80px;
    height: 80px;
    left: 50%;
    animation-duration: 11s;
    animation-delay: 0s;
}

.bubble:nth-child(5) {
    width: 35px;
    height: 35px;
    left: 55%;
    animation-duration: 6s;
    animation-delay: 1s;
}

.bubble:nth-child(6) {
    width: 45px;
    height: 45px;
    left: 65%;
    animation-duration: 8s;
    animation-delay: 3s;
}

.bubble:nth-child(7) {
    width: 25px;
    height: 25px;
    left: 75%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubble:nth-child(8) {
    width: 80px;
    height: 80px;
    left: 80%;
    animation-duration: 6s;
    animation-delay: 1s;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }
    50% {
        transform: translateX(100px);
    }
    100% {
        bottom: 1080px;
        transform: translateX(-200px);
    }
}

/* Split screen layout */
.left-side, .right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.left-side {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    animation: slideInLeft 1s ease-out;
}

.right-side {
    color: white;
    text-align: center;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Login form styles */
.login-container {
    width: 100%;
    max-width: 400px;
}

.title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.3s forwards;
}

.subtitle {
    color: #666;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.5s forwards;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.7s forwards;
}

.form-group:nth-child(2) {
    animation-delay: 0.9s;
}

input {
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-bottom-color: #764ba2;
}

label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: #999;
    transition: 0.3s;
    pointer-events: none;
}

input:focus ~ label,
input:valid ~ label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: #764ba2;
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #764ba2;
    transition: 0.4s;
}

input:focus ~ .focus-border {
    width: 100%;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.1s forwards;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    display: none;
}

.remember-me label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
    position: relative;
}

.checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.remember-me input:checked ~ label .checkbox {
    background: #764ba2;
    border-color: #764ba2;
}

.remember-me input:checked ~ label .checkbox::after {
    content: "✓";
    color: white;
    font-size: 12px;
}

.remember-me input:focus ~ label .checkbox {
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.3);
    animation: pulse 1.5s infinite;
}

.forgot-password {
    color: #764ba2;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.forgot-password:hover {
    text-decoration: underline;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(118, 75, 162, 0.3);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(118, 75, 162, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(118, 75, 162, 0);
    }
}

.login-btn {
    position: relative;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.3s forwards;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.signup-link {
    text-align: center;
    color: #666;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.5s forwards;
}

.signup-link a {
    color: #764ba2;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Right side styles */
.welcome-message {
    max-width: 500px;
}

.welcome-message h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.5s forwards;
}

.welcome-message p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.8s forwards;
}

.ghost-btn {
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.1s forwards;
}

.ghost-btn:hover {
    background: white;
    color: #764ba2;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer styles */
.footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    color: #666;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.7s forwards;
}

.developer-credit {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    animation: gradientShift 3s infinite alternate;
    font-size: 2rem;
    display: inline-block;
}

.heart {
    display: inline-block;
    animation: pulse 1.5s infinite;
    font-size: 2rem;
    vertical-align: middle;
    margin-left: 5px;
}

.underscore {
    width: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 1rem auto 0;
    animation: underscoreGrow 1s ease-out 2s forwards;
}

@keyframes underscoreGrow {
    to {
        width: 150px;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Audio controls */
.audio-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    z-index: 10;
}

.audio-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

.audio-btn:hover {
    background: white;
    transform: scale(1.1);
}

#volumeSlider {
    width: 0;
    margin-left: 0;
    opacity: 0;
    transition: 0.3s;
}

.audio-controls:hover #volumeSlider {
    width: 120px;
    margin-left: 10px;
    opacity: 1;
}

/* Form validation */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Confetti */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f00;
    opacity: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-side, .right-side {
        padding: 1rem;
    }
    
    .right-side {
        padding-top: 2rem;
        padding-bottom: 4rem;
    }
    
    .footer {
        position: relative;
        bottom: auto;
        margin-top: 2rem;
    }
    
    .audio-controls {
        bottom: 1rem;
        right: 1rem;
    }
    
    .developer-credit {
        font-size: 1.5rem;
    }
    
    .gradient-text {
        font-size: 1.6rem;
    }
    
    .heart {
        font-size: 1.7rem;
    }
}