@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --primary: #ffffff;
    --secondary: #f8fef9;
    --accent: #88c9a1;
    --accent-light: #c6e6d0;
    --accent-dark: #5aa37a;
    --dark: #2d3436;
    --light: #f8f9fa;
    --text-dark: #2d3436;
    --text-light: #7a8782;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Animated Background */
.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.background li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(136, 201, 161, 0.15);
    animation: animate 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.background li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.background li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.background li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.background li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.background li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* Intro Section */
.intro-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
    position: relative;
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--dark), var(--accent-dark));
    -webkit-background-clip: text;   /* Chrome/Safari */
    background-clip: text;           /* Standard */
    -webkit-text-fill-color: transparent; /* Chrome/Safari */
    color: transparent;              /* Fallback */
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    position: relative;
}

.highlight {
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    -webkit-background-clip: text;   /* Safari/Chrome */
    background-clip: text;           /* Standard property */
    -webkit-text-fill-color: transparent; /* Safari/Chrome */
    color: transparent;              /* Fallback */
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    animation: highlight 1.5s ease-in-out forwards;
    animation-delay: 1s;
}

@keyframes highlight {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }
    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent), var(--accent-dark));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    box-shadow: 0 5px 15px rgba(136, 201, 161, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-dark), var(--accent));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
    border-radius: 50px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(136, 201, 161, 0.4);
    color: white;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--accent-dark);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(136, 201, 161, 0.3);
}

/* Animation Classes */
.animate-pop {
    animation: popIn 1s ease forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-slide-up {
    animation: slideUp 1s ease forwards;
    opacity: 0;
}

.text-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: textReveal 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Section */
 
        .features-section {
            padding: 100px 0;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 30px 30px 0 0;
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
            border: 1px solid rgba(136, 201, 161, 0.2);
            transition: all 0.3s ease;
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            background: white;
            box-shadow: 0 15px 30px rgba(136, 201, 161, 0.15);
            border-color: var(--accent-light);
        }

        /* Green line animation effect */
        .feature-card::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -100%;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            transition: left 0.7s ease;
        }

        .feature-card::after {
            content: '';
            position: absolute;
            bottom: -2px;
            right: -100%;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            transition: right 0.7s ease;
        }

        .feature-card:hover::before {
            left: 100%;
        }

        .feature-card:hover::after {
            right: 100%;
        }

        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 20px;
            background: linear-gradient(to right, var(--accent-dark), var(--accent));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

/* Page Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-transition.hidden {
    opacity: 0;
    visibility: hidden;
}

.lottie-container {
    width: 200px;
    height: 200px;
}

.loader-text {
    margin-top: 20px;
    font-weight: 600;
    color: var(--accent);
    font-size: 1.2rem;
}

/* Login/Register Form Styles */
.form-container {
    position: relative;
    width: 750px;
    height: 450px;
    border: 2px solid var(--accent-light);
    box-shadow: 0 0 25px rgba(136, 201, 161, 0.2);
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.form-container .form-box {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.form-box.Login {
    left: 0;
    padding: 0 40px;
}

.form-box.Login .animation {
    transform: translateX(0%);
    transition: .7s;
    opacity: 1;
    transition-delay: calc(.1s * var(--S));
}

.form-container.active .form-box.Login .animation {
    transform: translateX(-120%);
    opacity: 0;
    transition-delay: calc(.1s * var(--D));
}

.form-box.Register {
    right: -35px;
    padding: 150px 66px 190px 40px;
}

.form-box.Register .animation {
    transform: translateX(100%);
    transition: .7s ease;
    opacity: 0;
    filter: blur(10px);
    transition-delay: calc(.1s * var(--S));
}

.form-container.active .form-box.Register .animation {
    transform: translateX(0%);
    opacity: 1;
    filter: blur(0px);
    transition-delay: calc(.1s * var(--li));
}

.form-box h2 {
    font-size: 32px;
    text-align: center;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
}

.form-box .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin-top: 25px;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 2px solid var(--accent-light);
    padding-right: 23px;
    transition: .5s;
}

.input-box input:focus,
.input-box input:valid {
    border-bottom: 2px solid var(--dark);
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-light);
    transition: .5s;
    pointer-events: none;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -5px;
    color: var(--accent);
    font-size: 14px;
}

.input-box box-icon {
    position: absolute;
    top: 50%;
    right: 0;
    font-size: 18px;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-box input:focus ~ box-icon,
.input-box input:valid ~ box-icon {
    color: var(--accent);
}

.form-btn {
    position: relative;
    width: 100%;
    height: 45px;
    background: transparent;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--accent);
    overflow: hidden;
    z-index: 1;
    color: var(--accent);
    margin-top: 25px;
    transition: all 0.3s ease;
}

.form-btn::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background: linear-gradient(45deg, var(--accent), var(--accent-dark));
    top: 0;
    left: 0;
    z-index: -1;
    transition: transform 0.5s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.form-btn:hover:before {
    transform: scaleX(1);
    transform-origin: left;
}

.form-btn:hover {
    color: white;
    border-color: var(--accent);
}

.regi-link {
    font-size: 14px;
    text-align: center;
    margin: 20px 0 10px;
    color: var(--accent);
}

.regi-link a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.regi-link a:hover {
    text-decoration: underline;
    color: var(--accent-dark);
}

.info-content {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.info-content.Login {
    right: 0;
    text-align: right;
    padding: 0 40px 60px 150px;
}

.info-content.Login .animation {
    transform: translateX(0);
    transition: .7s ease;
    transition-delay: calc(.1s * var(--S));
    opacity: 1;
    filter: blur(0px);
}

.form-container.active .info-content.Login .animation {
    transform: translateX(120%);
    opacity: 0;
    filter: blur(10px);
    transition-delay: calc(.1s * var(--D));
}

.info-content.Register {
    left: 0;
    text-align: left;
    padding: 0 150px 60px 38px;
    pointer-events: none;
}

.info-content.Register .animation {
    transform: translateX(-120%);
    transition: .7s ease;
    opacity: 0;
    filter: blur(10PX);
    transition-delay: calc(.1s * var(--S));
}

.form-container.active .info-content.Register .animation {
    transform: translateX(0%);
    opacity: 1;
    filter: blur(0);
    transition-delay: calc(.1s * var(--li));
}

.info-content h2 {
    text-transform: uppercase;
    font-size: 36px;
    line-height: 1.3;
    color: white;
}

.info-content p {
    font-size: 16px;
    color: white;
}

.form-container .curved-shape {
    position: absolute;
    right: 0;
    top: -5px;
    height: 600px;
    width: 850px;
    background: linear-gradient(45deg, var(--accent-dark), var(--accent));
    transform: rotate(10deg) skewY(40deg);
    transform-origin: bottom right;
    transition: 1.5s ease;
    transition-delay: 1.6s;
}

.form-container.active .curved-shape {
    transform: rotate(0deg) skewY(0deg);
    transition-delay: .5s;
}

.form-container .curved-shape2 {
    position: absolute;
    left: 250px;
    top: 100%;
    height: 700px;
    width: 850px;
    background: var(--primary);
    border-top: 3px solid var(--accent-light);
    transform: rotate(0deg) skewY(0deg);
    transform-origin: bottom left;
    transition: 1.5s ease;
    transition-delay: .5s;
}

.form-container.active .curved-shape2 {
    transform: rotate(-11deg) skewY(-41deg);
    transition-delay: 1.2s;
}

/* Form Modal */
.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.form-modal.active {
    opacity: 1;
    visibility: visible;
}

.close-form {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.close-form:hover {
    color: var(--accent-light);
    transform: rotate(90deg);
}
/* Add these styles to your existing CSS */
.error-message {
    color: #ff6b6b !important;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.input-box input:focus {
    border-color: #4CAF50 !important;
}

.input-box input.error {
    border-color: #ff6b6b !important;
}

.form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    font-weight: bold;
    transition: all 0.3s ease;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.email-status {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .form-container {
        width: 700px;
    }
}

@media (max-width: 992px) {
    .form-container {
        width: 650px;
    }
    
    .info-content.Login {
        padding: 0 30px 60px 120px;
    }
    
    .info-content.Register {
        padding: 0 120px 60px 30px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2.8rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .hero-image {
        margin-top: 50px;
    }
    
    .form-container {
        width: 90%;
        height: auto;
        min-height: 500px;
    }
    
    .info-content.Login,
    .info-content.Register {
        display: none;
    }
    
    .form-box.Login,
    .form-box.Register {
        width: 100%;
        padding: 30px;
    }
    
    .form-box h2 {
        font-size: 28px;
    }
    
    .curved-shape,
    .curved-shape2 {
        display: none;
    }

  #register-box{
        margin-right: 2rem;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .btn-primary, 
    .btn-outline-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .form-box.Login,
    .form-box.Register {
        padding: 20px;
    }
    
    .form-box h2 {
        font-size: 24px;
    }
    
    .input-box {
        height: 45px;
    }
    
    .input-box input {
        font-size: 14px;
    }
    
    .input-box label {
        font-size: 14px;

        
    }
    
    .form-btn {
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .logo {
        font-size: 2.2rem;
    }
    
    .intro-section {
        padding: 15px;
    }
    
    .form-box.Login,
    .form-box.Register {
        padding: 15px;
    }
}