@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Default font for the Landing Page */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #2b3a4a; /* BioMark Main Dark Blue */
    color: #ffffff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}
/* --- Header --- */
.header {
    background-color: #cfd8dc;
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #2b3a4a; /* Dark text for header */
    font-weight: 600;
}

.nav-left, .nav-right {
    display: flex;
    gap: 30px;
    width: 200px;
}

.nav-right {
    justify-content: flex-end;
}

.logo img {
    height: 150px;
    margin: 0 20px;
}

/* --- Split Sections --- */
.split-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 0;
    min-height: 400px;
}

.split-section.reverse {
    flex-direction: row;
}

.text-wrapper {
    flex: 1;
    padding: 0 60px;
    text-align: center;
}

.text-wrapper h2 {
    color: #eebb18; /* Mustard Yellow */
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-transform: capitalize;
}

.text-wrapper p {
    color: #d0d0d0;
    line-height: 1.6;
    font-size: 1rem;
}

.image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    border: 1px solid #555;
}

/* Accents */
.left-accent {
    background-color: #dcb21f;
    padding: 60px 60px 60px 0;
    border-top-right-radius: 60px;
    border-bottom-right-radius: 60px;
    justify-content: flex-start;
}
.left-accent img { margin-left: 0; }

.right-accent {
    background-color: #dcb21f;
    padding: 60px 0 60px 60px;
    border-top-left-radius: 60px;
    border-bottom-left-radius: 60px;
    justify-content: flex-end;
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    padding: 60px 20px;
}

.quote {
    color: #eebb18;
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.quote:hover {
    transform: scale(1.05);
}

.quote span {
    font-weight: 700;
}

/* --- Main Footer (Landing Page) --- */
.footer {
    background-color: #fdd835;
    color: #2b3a4a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-center h3 {
    letter-spacing: 1px;
    font-weight: 700;
}

/* =========================================
   3. AUTH OVERLAY & LOGIN FORM STYLES
   ========================================= */

/* The Dark Background Overlay */
#auth-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* Close Button ("X") */
.close-btn {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
}
.close-btn:hover { color: #fdd835; }

/* Font Override for Login Form components only */
.auth-wrapper, .auth-wrapper * {
    font-family: 'Poppins', sans-serif;
    color: #fff; /* Force white text inside the dark login form */
}

/* Original Auth Wrapper */
.auth-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    background: #1a1a2e; /* Original dark purple background */
    border: 2px solid #fdd835;
    box-shadow: 0 0 25px #fdd835;
    overflow: hidden;
    /* Removed margin/body centering as Overlay handles it now */
}

/* Credentials Panel (Inputs) */
.auth-wrapper .credentials-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.credentials-panel.signin {
    left: 0;
    padding: 0 40px;
}

.credentials-panel.signup {
    right: 0;
    padding: 0 60px;
}

/* Animations for Panel Elements */
.credentials-panel.signin .slide-element {
    transform: translateX(0%);
    transition: .7s;
    opacity: 1;
}

/* Staggered Delays for Sign In */
.credentials-panel.signin .slide-element:nth-child(1) { transition-delay: 2.1s; }
.credentials-panel.signin .slide-element:nth-child(2) { transition-delay: 2.2s; }
.credentials-panel.signin .slide-element:nth-child(3) { transition-delay: 2.3s; }
.credentials-panel.signin .slide-element:nth-child(4) { transition-delay: 2.4s; }
.credentials-panel.signin .slide-element:nth-child(5) { transition-delay: 2.5s; }

/* Toggled State (Hiding Sign In) */
.auth-wrapper.toggled .credentials-panel.signin .slide-element {
    transform: translateX(-120%);
    opacity: 0;
}
.auth-wrapper.toggled .credentials-panel.signin .slide-element:nth-child(1) { transition-delay: 0s; }
.auth-wrapper.toggled .credentials-panel.signin .slide-element:nth-child(2) { transition-delay: 0.1s; }
.auth-wrapper.toggled .credentials-panel.signin .slide-element:nth-child(3) { transition-delay: 0.2s; }
.auth-wrapper.toggled .credentials-panel.signin .slide-element:nth-child(4) { transition-delay: 0.3s; }
.auth-wrapper.toggled .credentials-panel.signin .slide-element:nth-child(5) { transition-delay: 0.4s; }

/* Sign Up Panel (Hidden Initially) */
.credentials-panel.signup .slide-element {
    transform: translateX(120%);
    transition: .7s ease;
    opacity: 0;
    filter: blur(10px);
}

/* Toggled State (Showing Sign Up) */
.auth-wrapper.toggled .credentials-panel.signup .slide-element {
    transform: translateX(0%);
    opacity: 1;
    filter: blur(0px);
}
.auth-wrapper.toggled .credentials-panel.signup .slide-element:nth-child(1) { transition-delay: 1.7s; }
.auth-wrapper.toggled .credentials-panel.signup .slide-element:nth-child(2) { transition-delay: 1.8s; }
.auth-wrapper.toggled .credentials-panel.signup .slide-element:nth-child(3) { transition-delay: 1.9s; }
.auth-wrapper.toggled .credentials-panel.signup .slide-element:nth-child(4) { transition-delay: 1.9s; }
.auth-wrapper.toggled .credentials-panel.signup .slide-element:nth-child(5) { transition-delay: 2.0s; }
.auth-wrapper.toggled .credentials-panel.signup .slide-element:nth-child(6) { transition-delay: 2.1s; }

/* Form Elements */
.credentials-panel h2 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 20px;
}

.credentials-panel .field-wrapper {
    position: relative;
    width: 100%;
    height: 50px;
    margin-top: 25px;
}

.field-wrapper input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #fff;
    padding-right: 23px;
    transition: .5s;
}

.field-wrapper input:focus,
.field-wrapper input:valid {
    border-bottom: 2px solid #fdd835;
}

.field-wrapper label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 16px;
    color: #fff;
    transition: .5s;
    pointer-events: none;
}

.field-wrapper input:focus~label,
.field-wrapper input:valid~label {
    top: -5px;
    color: #fdd835;
}

.field-wrapper i {
    position: absolute;
    top: 50%;
    right: 0;
    font-size: 18px;
    transform: translateY(-50%);
    color: #fff;
}

.field-wrapper input:focus~i,
.field-wrapper input:valid~i {
    color: #fdd835;
}

.submit-button {
    position: relative;
    width: 100%;
    height: 45px;
    background: transparent;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #fdd835;
    overflow: hidden;
    z-index: 1;
    color: #fff;
}

.submit-button::before {
    content: "";
    position: absolute;
    height: 300%;
    width: 100%;
    background: linear-gradient(#1a1a2e, #fdd835, #1a1a2e, #fdd835);
    top: -100%;
    left: 0;
    z-index: -1;
    transition: .5s;
}

.submit-button:hover:before {
    top: 0;
}

.switch-link {
    font-size: 14px;
    text-align: center;
    margin: 20px 0 10px;
}

.switch-link a {
    text-decoration: none;
    color: #fdd835;
    font-weight: 600;
}

.switch-link a:hover {
    text-decoration: underline;
}

/* Welcome Section */
.welcome-section {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.welcome-section.signin {
    right: 0;
    text-align: right;
    padding: 0 40px 60px 150px;
}

.welcome-section.signin .slide-element {
    transform: translateX(0);
    transition: .7s ease;
    opacity: 1;
}

.welcome-section.signin .slide-element:nth-child(1) { transition-delay: 2.0s; }
.welcome-section.signin .slide-element:nth-child(2) { transition-delay: 2.1s; }

.auth-wrapper.toggled .welcome-section.signin .slide-element {
    transform: translateX(120%);
    opacity: 0;
    filter: blur(10px);
}

.welcome-section.signup {
    left: 0;
    text-align: left;
    padding: 0 150px 60px 38px;
    pointer-events: none;
}

.welcome-section.signup .slide-element {
    transform: translateX(-120%);
    transition: .7s ease;
    opacity: 0;
    filter: blur(10px);
}

.auth-wrapper.toggled .welcome-section.signup .slide-element {
    transform: translateX(0%);
    opacity: 1;
    filter: blur(0);
}
.auth-wrapper.toggled .welcome-section.signup .slide-element:nth-child(1) { transition-delay: 1.7s; }
.auth-wrapper.toggled .welcome-section.signup .slide-element:nth-child(2) { transition-delay: 1.8s; }

.welcome-section h2 {
    text-transform: uppercase;
    font-size: 36px;
    line-height: 1.3;
}

.welcome-section p {
    font-size: 16px;
}

/* Animated Background Shapes */
.auth-wrapper .background-shape {
    position: absolute;
    right: 0;
    top: -5px;
    height: 600px;
    width: 850px;
    background: linear-gradient(45deg, #1a1a2e, #fdd835);
    transform: rotate(10deg) skewY(40deg);
    transform-origin: bottom right;
    transition: 1.5s ease;
    transition-delay: 1.6s;
}

.auth-wrapper.toggled .background-shape {
    transform: rotate(0deg) skewY(0deg);
    transition-delay: .5s;
}

.auth-wrapper .secondary-shape {
    position: absolute;
    left: 250px;
    top: 100%;
    height: 700px;
    width: 850px;
    background: #1a1a2e;
    border-top: 3px solid #fdd835;
    transform: rotate(0deg) skewY(0deg);
    transform-origin: bottom left;
    transition: 1.5s ease;
    transition-delay: .5s;
}

.auth-wrapper.toggled .secondary-shape {
    transform: rotate(-11deg) skewY(-41deg);
    transition-delay: 1.2s;
}
@media (max-width: 768px) {
    /* -- Landing Page Mobile -- */
    .split-section {
        flex-direction: column;
        padding: 20px 0;
    }
    .split-section.reverse {
        flex-direction: column-reverse;
    }
    .image-wrapper, .text-wrapper {
        padding: 20px;
        width: 100%;
    }
    .left-accent, .right-accent {
        border-radius: 0;
        padding: 30px;
        justify-content: center;
    }
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .nav-left, .nav-right {
        justify-content: center;
        width: auto;
    }
    .footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* -- Auth Form Mobile -- */
    .auth-wrapper {
        height: auto;
        min-height: 500px;
        flex-direction: column;
        width: 90%; /* Responsive width for modal */
    }

    .auth-wrapper .credentials-panel,
    .welcome-section {
        width: 100%;
        position: relative;
    }

    .credentials-panel.signin,
    .credentials-panel.signup {
        padding: 40px 30px;
        left: 0;
        right: 0;
    }

    .credentials-panel.signin {
        display: flex;
        animation: fadeInUp 0.6s ease forwards;
    }

    .credentials-panel.signup {
        display: none;
    }

    .auth-wrapper.toggled .credentials-panel.signin {
        display: none;
    }

    .auth-wrapper.toggled .credentials-panel.signup {
        display: flex;
        animation: fadeInUp 0.6s ease forwards;
    }
    
    .welcome-section {
        display: none;
    }

    .auth-wrapper .background-shape,
    .auth-wrapper .secondary-shape {
        display: none;
    }

    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
.btn-register {
    background-color: #eebb18;
    color: #2b3a4a;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 12px 50px;
    border-radius: 30px;
    border: 2px solid #a03060; /* The reddish/pink border seen in image */
    transition: transform 0.2s;
    display: inline-block;
}

.btn-register:hover {
    transform: scale(1.05);
    cursor: pointer;
}
