* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* Animated Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Particles */
.particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
    z-index: -1;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    top: 10%;
    left: 20%;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(2) {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    top: 60%;
    left: 80%;
    animation: float 15s infinite ease-in-out 2s;
}

.particle:nth-child(3) {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    top: 80%;
    left: 10%;
    animation: float 18s infinite ease-in-out 4s;
}

.particle:nth-child(4) {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    top: 30%;
    left: 70%;
    animation: float 22s infinite ease-in-out 1s;
}

.particle:nth-child(5) {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    top: 50%;
    left: 50%;
    animation: float 17s infinite ease-in-out 3s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, -100px) rotate(90deg);
    }
    50% {
        transform: translate(-50px, -200px) rotate(180deg);
    }
    75% {
        transform: translate(-150px, -50px) rotate(270deg);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    z-index: 1;
}

/* Glassmorphism Effect */
.form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 700px;
    animation: fadeInScale 0.8s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Branding Section */
.branding-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background Shapes */
.branding-section::before,
.branding-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.branding-section::before {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation: pulse 8s ease-in-out infinite;
}

.branding-section::after {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation: pulse 6s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

.branding-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.branding-content i {
    font-size: 90px;
    margin-bottom: 25px;
    animation: floatIcon 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.branding-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
}

.branding-content > p {
    font-size: 17px;
    opacity: 0.95;
    line-height: 1.8;
    margin-bottom: 50px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.features {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 16px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: 32px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

/* Forms Section */
.forms-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 60px 50px;
    position: relative;
}

.form-container {
    display: none;
    animation: slideInRight 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-container.active {
    display: block;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-container h2 {
    font-size: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #888;
    margin-bottom: 35px;
    font-size: 15px;
}

/* Alert Messages */
.alert {
    padding: 18px 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    animation: slideDown 0.5s ease;
    backdrop-filter: blur(10px);
    border: 1px solid;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 26px;
    margin-top: 2px;
}

.alert-error {
    background: rgba(255, 59, 48, 0.1);
    color: #c33;
    border-color: rgba(204, 51, 51, 0.3);
}

.alert-success {
    background: rgba(52, 199, 89, 0.1);
    color: #2d8653;
    border-color: rgba(52, 199, 89, 0.3);
}

.alert-content p {
    margin: 3px 0;
    font-weight: 500;
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 22px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: 18px 20px 18px 60px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: rgba(255, 255, 255, 0.8);
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.input-group input:focus ~ i {
    color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 22px;
    pointer-events: all;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #667eea;
    transform: translateY(-50%) scale(1.15);
}

/* Password Strength Indicator */
.password-strength {
    margin-bottom: 25px;
    display: none;
    animation: slideDown 0.3s ease;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 10px;
}

.password-strength.weak .strength-bar::after {
    width: 33%;
    background: linear-gradient(to right, #f44336, #ff5252);
}

.password-strength.medium .strength-bar::after {
    width: 66%;
    background: linear-gradient(to right, #ff9800, #ffc107);
}

.password-strength.strong .strength-bar::after {
    width: 100%;
    background: linear-gradient(to right, #4caf50, #8bc34a);
}

.strength-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.checkbox-container:hover {
    color: #667eea;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.forgot-link {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.forgot-link:hover::after {
    width: 100%;
}

.forgot-link:hover {
    color: #764ba2;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn:active {
    transform: translateY(-1px);
}

.btn i {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

/* Form Switch */
.form-switch {
    text-align: center;
    margin-top: 30px;
}

.form-switch p {
    color: #888;
    font-size: 15px;
}

.switch-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.switch-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.switch-link:hover::after {
    width: 100%;
}

.switch-link:hover {
    color: #764ba2;
}

/* Responsive Design */
@media (max-width: 968px) {
    .form-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .branding-section {
        padding: 50px 40px;
    }
    
    .branding-content h1 {
        font-size: 38px;
    }
    
    .features {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .feature-item {
        flex: 1 1 45%;
    }
    
    .forms-section {
        padding: 50px 40px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 10px;
    }
    
    .form-wrapper {
        border-radius: 20px;
    }
    
    .branding-section {
        padding: 40px 30px;
    }
    
    .branding-content i {
        font-size: 70px;
    }
    
    .branding-content h1 {
        font-size: 32px;
    }
    
    .features {
        flex-direction: column;
    }
    
    .forms-section {
        padding: 40px 25px;
    }
    
    .form-container h2 {
        font-size: 28px;
    }
    
    .particle {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

