/* Form Section */
#form {
    height: 100vh;
    width: 100vw;
    background-image: url("/assets/images/waterfall.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
}

.form-container {
    display: flex;
    align-items: center;
    min-height: 100vh;
    position: relative;
    padding: 20px 180px;
    background-color: #211361;
    opacity: 0.9;
    z-index: 1;
    justify-content: space-between;
    gap: 100px;
    box-sizing: border-box;
}

/* Left Content */
.form-content {
    flex: 1;
    color: white;
    max-width: 500px;
    z-index: 2;
    position: relative;
}

.form-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: white;
    z-index: 2;
}

.form-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 1;
    color: white;
    z-index: 2;
}

/* Form Wrapper */
.form-wrapper {
    background: rgba(255, 255, 255, 1);
    border-radius: 15px;
    padding: 0;
    min-width: 400px;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 5;
    position: relative;
    box-sizing: border-box;
}

.form-wrapper:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* Form Tabs */
.form-tabs {
    display: flex;
    background: #f8f9fa;
}

.tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    position: relative;
}

.tab:hover {
    color: #495057;
    background: #e9ecef;
}

.tab.active {
    color: #343a40;
    background: white;
    border-bottom: 3px solid #17a2b8;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #17a2b8, #20c997);
}

/* Form Content */
.signup-form,
.login-form {
    padding: 40px;
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.signup-form.active,
.login-form.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.form-input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #17a2b8;
    background: white;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
    transform: translateY(-2px);
}

.form-input:hover {
    border-color: #ced4da;
    background: white;
}

.form-input::placeholder {
    color: #adb5bd;
    font-size: 0.95rem;
}

/* Buttons */
.btn-create,
.btn-login {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #20c997, #17a2b8);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.btn-create:hover,
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.4);
    background: linear-gradient(45deg, #1dd1a1, #139db8);
}

.btn-create:active,
.btn-login:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    color: #6c757d;
    margin: 25px 0;
    font-size: 0.9rem;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #dee2e6;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.btn-twitter {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #1da1f2, #0d8bd9);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.btn-twitter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
    background: linear-gradient(45deg, #0d8bd9, #0a7bc4);
}

.btn-twitter:active {
    transform: translateY(0);
}

/* Button Ripple Effect */
.btn-create::before,
.btn-login::before,
.btn-twitter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-create:active::before,
.btn-login:active::before,
.btn-twitter:active::before {
    width: 300px;
    height: 300px;
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .form-container {
        padding: 20px 100px;
        gap: 80px;
    }
    
    .form-content h1 {
        font-size: 3.2rem;
    }
    
    .form-wrapper {
        min-width: 380px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .form-container {
        padding: 20px 50px;
        gap: 60px;
    }

    .form-content h1 {
        font-size: 2.8rem;
    }

    .form-wrapper {
        min-width: 350px;
    }
    
    .form-wrapper:hover {
        transform: translateY(-3px) scale(1.02);
    }
}

/* Large mobile devices */
@media (max-width: 768px) {
    #form {
        height: auto;
        min-height: 100vh;
    }
    
    .form-container {
        flex-direction: column;
        padding: 40px 30px;
        gap: 40px;
        text-align: center;
        justify-content: center;
    }

    .form-content {
        max-width: none;
        width: 100%;
        margin-bottom: 20px;
    }

    .form-content h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .form-content p {
        font-size: 1.1rem;
    }

    .form-wrapper {
        min-width: auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .form-wrapper:hover {
        transform: translateY(-2px) scale(1.01);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .form-container {
        padding: 30px 20px;
        gap: 30px;
    }
    
    .form-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .form-content p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .form-wrapper {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .signup-form,
    .login-form {
        padding: 30px 25px;
    }
    
    .tab {
        padding: 15px 10px;
        font-size: 0.8rem;
    }

    .form-input {
        padding: 15px 18px;
        font-size: 0.95rem;
        margin-bottom: 18px;
    }
    
    .btn-create,
    .btn-login,
    .btn-twitter {
        padding: 15px;
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .divider {
        margin: 20px 0;
        font-size: 0.85rem;
    }
    
    .form-wrapper:hover {
        transform: none;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .form-container {
        padding: 20px 15px;
    }
    
    .form-content h1 {
        font-size: 1.6rem;
    }
    
    .signup-form,
    .login-form {
        padding: 25px 20px;
    }
    
    .form-input {
        padding: 12px 15px;
    }
    
    .btn-create,
    .btn-login,
    .btn-twitter {
        padding: 12px;
        font-size: 0.95rem;
    }
}