@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #7d2ae8;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #1a1a2e, #16213e, #0f3460);
    overflow: hidden;
    color: var(--text-color);
}

/* Background decorative blobs */
.background-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #4e00c2;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #007bff;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #ff007b;
    top: 50%;
    left: 70%;
    animation-delay: -10s;
}

@keyframes move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 100px); }
}

.container {
    position: relative;
    max-width: 430px;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    margin: 0 20px;
    transition: all var(--transition-speed) ease;
}

.container .forms {
    display: flex;
    align-items: flex-start;
    height: 480px; /* Increased from 440px */
    width: 300%; /* For three forms */
    transition: all var(--transition-speed) ease;
}

.container .form {
    width: 33.333%;
    padding: 40px 40px 60px 40px;
    transition: all var(--transition-speed) ease;
}

/* Form Visibility/Transitions */
.container.show-signup .forms {
    height: 660px; /* Increased from 620px */
    transform: translateX(-33.333%);
}

.container.show-forgot .forms {
    height: 440px; /* Increased from 400px */
    transform: translateX(-66.666%);
}

.form .title {
    position: relative;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    display: block;
}

.form .title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 3px;
    width: 30px;
    background-color: var(--primary-color);
    border-radius: 25px;
}

.form .subtitle {
    margin: -20px 0 20px 0;
    font-size: 14px;
    opacity: 0.8;
}

.form .input-field {
    position: relative;
    height: 50px;
    width: 100%;
    margin-top: 30px;
}

.input-field input {
    height: 100%;
    width: 100%;
    padding: 0 35px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    outline: none;
    font-size: 16px;
    border-radius: 10px;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.input-field input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.input-field i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--glass-border);
    font-size: 20px;
    transition: all 0.2s ease;
}

.input-field i.icon {
    left: 10px;
}

.input-field i.showHidePw {
    right: 10px;
    cursor: pointer;
    padding: 10px;
}

.input-field input:focus ~ i {
    color: var(--primary-color);
}

.form .checkbox-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
}

.checkbox-text .checkbox-content {
    display: flex;
    align-items: center;
}

.checkbox-content input {
    margin-right: 10px;
    accent-color: var(--primary-color);
}

.form .text {
    color: var(--text-muted);
    font-size: 14px;
}

.form a.text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.form a:hover {
    text-decoration: underline;
}

.form .button {
    margin-top: 35px;
}

.form .button input {
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7d2ae8, #4e00c2);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(125, 42, 232, 0.3);
}

.button input:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(125, 42, 232, 0.4);
}

.button input:active {
    transform: translateY(0);
}

.form .login-signup {
    margin-top: 30px;
    text-align: center;
}

.login-signup .text {
    display: block;
}

@media (max-width: 400px) {
    .container {
        margin: 0 10px;
    }
    .form {
        padding: 30px;
    }
}