body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
    transition: background-color 0.5s ease;
    background-color: var(--background-color);
}
.container {
    display: flex;
    width: 90%;
    max-width: 900px;
    height: 90%;
    max-height: 500px;
    background-color: var(--container-bg-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
    flex-direction: column;
    position: relative;
    z-index: 1;
}
.left, .right {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.left {
    animation: slideInLeft 1s ease-in-out;
}
.left h1 {
    font-size: 24px;
    margin: 0;
    color: var(--text-color);
    animation: textFadeIn 2s ease-in-out;
    text-align: center;
}
.left p {
    color: var(--subtext-color);
    margin: 10px 0 20px;
    animation: textFadeIn 2s ease-in-out;
    text-align: center;
}
.left input[type="email"],
.left input[type="password"] {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid var(--input-border-color);
    border-radius: 10px;
    font-size: 16px;
    background-color: var(--input-bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    animation: inputFadeIn 2s ease-in-out;
}
.left input[type="email"]:focus,
.left input[type="password"]:focus {
    border-color: #3395ff;
    box-shadow: 0 0 10px rgba(51, 149, 255, 0.5);
}
.left .options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    animation: textFadeIn 2s ease-in-out;
    width: 100%;
}
.left .options label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--subtext-color);
}
.left .options label input {
    margin-right: 10px;
}
.left .options a {
    color: var(--subtext-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}
.left .options a:hover {
    color: #3395ff;
}
.left button {
    width: 100%;
    padding: 15px;
    background-color: #3395ff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    margin: 20px 0;
    transition: background-color 0.3s ease;
    animation: buttonFadeIn 2s ease-in-out;
}
.left button:hover {
    background-color: #287acc;
}
.left .signup {
    text-align: center;
    font-size: 14px;
    color: var(--subtext-color);
    animation: textFadeIn 2s ease-in-out;
}
.left .signup a {
    color: #3395ff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.left .signup a:hover {
    color: #287acc;
}
.right {
    background: linear-gradient(135deg, #3395ff, #66b2ff);
    animation: slideInRight 1s ease-in-out;
    display: none;
}
.right img {
    width: 80%;
    height: auto;
    animation: float 3s ease-in-out infinite;
}
.shape {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: moveShape 10s infinite alternate;
    z-index: 0;
}
.shape.triangle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(255, 255, 255, 0.2);
    animation: moveTriangle 10s infinite alternate;
}
.shape.circle {
    width: 50px;
    height: 50px;
    animation: moveCircle 10s infinite alternate;
}
.shape.square {
    width: 40px;
    height: 40px;
    animation: moveSquare 10s infinite alternate;
}
.shape.hexagon {
    width: 60px;
    height: 34.64px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    margin: 17.32px 0;
    animation: moveHexagon 10s infinite alternate;
}
.shape.hexagon:before,
.shape.hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
}
.shape.hexagon:before {
    bottom: 100%;
    border-bottom: 17.32px solid rgba(255, 255, 255, 0.2);
}
.shape.hexagon:after {
    top: 100%;
    width: 0;
    border-top: 17.32px solid rgba(255, 255, 255, 0.2);
}
.shape.playstation {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: movePlaystation 10s infinite alternate;
}
.mode-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #3395ff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 5px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 30px;
    transition: background-color 0.3s ease;
}
.mode-toggle .toggle-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.mode-toggle .fa-moon,
.mode-toggle .fa-sun {
    font-size: 18px;
    position: absolute;
}
.mode-toggle .fa-moon {
    right: 5px;
}
.mode-toggle .fa-sun {
    left: 5px;
}
.light-mode .mode-toggle {
    background-color: #3395ff;
    color: #f5f5f5;
}
.light-mode .mode-toggle .fa-moon {
    display: none;
}
.light-mode .mode-toggle .fa-sun {
    display: block;
}
.light-mode .mode-toggle .toggle-icon {
    transform: translateX(30px);
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}
@keyframes backgroundFade {
    0% {
        background-color: #1a1a1a;
    }
    100% {
        background-color: #333;
    }
}
@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes inputFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes moveShape {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}
@keyframes moveTriangle {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(100px, 100px) rotate(360deg);
    }
}
@keyframes moveCircle {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(100px, 100px) scale(1.5);
    }
}
@keyframes moveSquare {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(100px, 100px) rotate(360deg);
    }
}
@keyframes moveHexagon {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(100px, 100px) rotate(360deg);
    }
}
@keyframes movePlaystation {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(100px, 100px) rotate(360deg);
    }
}
@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }
    .left, .right {
        padding: 50px;
    }
    .left h1 {
        font-size: 36px;
    }
    .left p {
        margin: 10px 0 30px;
    }
    .right {
        display: flex;
        animation: slideInRightDesktop 1s ease-in-out;
    }
}
@keyframes slideInRightDesktop {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
:root {
    --background-color: #1a1a1a;
    --container-bg-color: #2c2c2c;
    --text-color: #fff;
    --subtext-color: #aaa;
    --input-bg-color: #333;
    --input-border-color: #444;
}
.light-mode {
    --background-color: #f5f5f5;
    --container-bg-color: #fff;
    --text-color: #000;
    --subtext-color: #666;
    --input-bg-color: #f5f5f5;
    --input-border-color: #ddd;
}
