/* demostyle.css */
:root {
    --primary-blue: #3076F8;
    --primary-pink: #FB62F6;
    --dark-blue: #0B3686;
    --black: #1E1E1E;
    --white: #FFFFFF;
    --light-gray: #F2F4F8;
    --gray: #989898;
    --error-red: #FF3B30;
    --success-green: #34C759;
    --social-icon-color: #777777;
}

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

body {
    background-color: var(--light-gray);
    color: var(--black);
    line-height: 1.6;
    height: 100vh;
}

.main-container {
    display: flex;
    height: 100vh;
}

/* Left Section Styles */
.left-section {
    flex: 1;
    background: linear-gradient(135deg, #FFF6FE 0%, #F8F0FF 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 650px;
    border-radius: 24px;
    padding: 40px;
}

.form-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(45deg, #3076F8 19.55%, #f55ef0 52.21%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    line-height: 1.2;
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
}

.welcome-text {
    color: var(--gray);
    text-align: center;
    margin-bottom: 32px;
    font-size: 26px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 16px 24px;
    border: 1px solid var(--primary-pink);
    border-radius: 40.5px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(251, 98, 246, 0.2);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    cursor: pointer;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.captcha-group input {
    flex: 1;
    min-width: 120px;
}
.captcha-image {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-image img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.refresh-captcha {
    color: var(--primary-pink);
    cursor: pointer;
    font-size: 18px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    left: 38%;
}

.login-btn, .signup-btn, .forgot-btn {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-pink));
    color: var(--white);
    border: none;
    border-radius: 40.5px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 16px;
}

.login-btn:hover, .signup-btn:hover, .forgot-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(48, 118, 248, 0.2);
}

.signup-prompt, .login-prompt {
    text-align: center;
    margin-top: 24px;
    color: var(--black);
    font-size: 14px;
}

.signup-link, .login-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
}

.alert-danger {
    background-color: rgba(255, 59, 48, 0.1);
    color: var(--error-red);
    border: 1px solid var(--error-red);
}

.alert-success {
    background-color: rgba(52, 199, 89, 0.1);
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

.branding {
    position: absolute;
    bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
    color: var(--black);
    font-size: 14px;
    gap: 4px;
}

/* Right Section Styles */
.right-section {
    flex: 1;
    background: linear-gradient(47deg, #001741 0%, #710D6D 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 80px;
    color: var(--white);
}
.hero-logo {
    max-height: 120px; /* Adjust logo size */
    margin-bottom: -60px; /* Space below the logo */
  }
  
  
  .illustration-container {
    top: 100px; /* adjust as needed */
    position: absolute; /* take it out of normal flow */
              /* adjust vertical position */
    left: 45%;          /* adjust horizontal position */
    transform: translate(-50%, -50%); /* center it relative to chosen point */
    width: 100%;         /* control width freely */
    max-width: 600px;   /* optional, cap size */
    pointer-events: none; /* so it doesn’t block clicks on text/buttons */
    z-index: 2; /* send it behind text */
  }
  
  .main-illustration {
    margin-top:70%;
    /* margin-right: 20%; */
    width: 100%;
    height: auto;
    display: block;
  }
  .hero-content{
    position: relative; /* make this the reference for absolute positioning */
    width: 100%;
    height: 100%;
  }
  
.hero-content h1 {
    position: absolute;
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(45deg, #3076F8 19.55%, #f55ef0 52.21%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* margin-bottom: 16px; */
    line-height: 1.2;
    top: 500px;
}
.hero-content h1,
.hero-content h2,
.hero-logo,
.assessment-badge {
    position: relative;
    z-index: 1; /* keep text above illustration */
}
.hero-logo{
    position: absolute;   /* take it out of flow */
    top: 20px;            /* distance from top */
    left: -60px;           /* distance from left */
    max-height: 120px;
    margin: 0;            /* remove the old margin-bottom */
    z-index: 2;
}
.hero-content h2 {
    position: absolute;
    top: 750px;
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0px;
    /* margin-top: 30px; */
}

/* Form Visibility */
.form-container {
    display: none;
}

.form-visible {
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .right-section {
        padding: 0 40px;
    }
    
    .hero-content h1 {
        font-size: 36px;
        margin-top: 50px; /* push it below the illustration height */
    z-index: 1;
    }
    
    .hero-content h2 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    html, body {
        height: 100%;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .main-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .left-section, .right-section {
        flex: none;
        width: 100%;
        height: auto;
        padding: 40px 24px;
    }
    
    .right-section {
        order: -1;
        text-align: center;
        align-items: center;
        padding: 60px 24px;
    }
    
    .login-card {
        max-width: 100%;
        padding: 32px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content h2 {
        font-size: 18px;
    }
    
    .branding {
        position: static;
        margin-top: 40px;
    }
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-half {
        width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px; /* Base font reduction */
    }
    .login-card {
        padding: 24px;
    }
    
    .form-title {
        font-size: 28px;
    }
    
    .form-group input {
        padding: 14px 20px;
    }
    
    .login-btn, .signup-btn, .forgot-btn {
        padding: 14px 24px;
    }
}

/* Social Icons */
  .social-icons {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1;
  }
   .social-icon {
    color: var(--social-icon-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
  }
  
  .social-icon:hover {
    color: var(--primary-blue);
  }
  
/* Gradient circles/blobs for left section */
.left-section {
    position: relative;
    overflow: hidden;
}

.left-section .circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(107, 157, 250, 0.692) 0%, rgba(238, 71, 232, 0.771) 100%);
    filter: blur(115px);
    z-index: 0;
}

.left-section .circle-1 {
    top: -200px;
    left: -200px;
}

.left-section .circle-2 {
    top: -200px;
    right: -200px;
}

.left-section .circle-3 {
    bottom: -200px;
    left: -200px;
}

.left-section .circle-4 {
    bottom: -200px;
    right: -200px;
}

.login-card {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
}
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-half {
    flex: 1;
    min-width: 0; /* Prevent flex items from overflowing */
}

.form-row .form-group {
    margin-bottom: 0;
}





/* Large Screens (1440px and above) */
@media (min-width: 1440px) {
    .hero-logo { max-height: 140px; left: -40px; }
    .hero-content h1 { font-size: 45px; top: 500px; }
    .hero-content h2 { font-size: 25px; top: 670px; }
    .main-illustration { margin-top: 65%; max-width: 550px; }
}

/* Tablets Landscape (1024px – 1279px) */
@media (max-width: 1279px) and (min-width: 1024px) {
    .hero-logo { max-height: 100px; left: -40px; }
    .hero-content h1 { font-size: 40px; top: 460px; }
    .hero-content h2 { font-size: 20px; top: 620px; }
    .main-illustration { margin-top: 75%; max-width: 500px; }
}

/* Tablets Portrait (768px – 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .right-section { padding: 0 40px; align-items: center; text-align: center; }
    .hero-logo { position: relative; top: 20px; left: 0; max-height: 100px; margin-bottom: 0px; }
    .illustration-container { position: relative; top: 0; left: 0; transform: none; max-width: 400px; margin: 0 auto 20px; }
    .main-illustration { margin-top: 0; }
    .hero-content h1 { position: relative; top: 0; font-size: 42px; }
    .hero-content h2 { position: relative; top: 0; font-size: 22px; margin-top: 8px; }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .right-section { padding: 20px; align-items: center; text-align: center; }
    .hero-logo { position: relative; top: 0; left: 0; max-height: 100px; margin-bottom: 0px; }
    .illustration-container { position: relative; top: 0; left: 0; transform: none; max-width: 500px; margin: 0 auto 10px; }
    .main-illustration { margin-top: -60px; }
    .hero-content h1 { position: relative; margin-top: -30px; top: 0; font-size: 42px;  }
    .hero-content h2 { position: relative; top: 0; font-size: 16px; margin-top: 10px; font-size: 20px; }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    .hero-logo { max-height: 90px; }
    .hero-content h1 { font-size: 32px; }
    .hero-content h2 { font-size: 20px; }
    .illustration-container { max-width: 350px; }
}

/* Mobile number */
/* Mobile number - Complete override */
/* Mobile number - Complete override */
.iti {
    width: 100% !important;
    position: relative;
}

.iti * {
    box-sizing: border-box;
}

.iti__flag-container {
    padding: 0 !important;
    border: none !important;
    background: none !important;
}
.iti__flag-container:focus{
    outline: none !important;
    box-shadow: none !important;
}
.iti__flag-container:focus-within {
    outline: none !important;
    box-shadow: none !important;
}
.iti__selected-flag {
    background: transparent !important; /* transparent so no extra box */
    border: none !important;           /* remove its own border */
    padding: 0 12px !important;
    height: 100% !important;
    min-width: 70px !important; /* keep some space for flag + code */
    display: flex !important;
    align-items: center !important;
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
    background: var(--white) !important;
    border-color: var(--primary-pink) !important;
}

.iti--allow-dropdown input,
.iti--allow-dropdown input[type=tel] {
    width: 100% !important;
    padding: 16px 24px 16px 90px !important; /* leave room for +91 */
    border: 1px solid var(--primary-pink) !important;
    border-radius: 40.5px !important; /* full pill shape */
    height: 56px !important;
    font-size: 16px !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    background: var(--white) !important;
    color: var(--black) !important;
    margin: 0 !important;
}
.form-group .iti {
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
}
.iti--allow-dropdown input:focus,
.iti--allow-dropdown input[type=tel]:focus {
    border-color: var(--primary-pink) !important;
    box-shadow: 0 0 0 3px rgba(251, 98, 246, 0.2) !important;
    background: var(--white) !important;
}

/* Focus state for the entire container */
.iti--allow-dropdown:focus-within .iti__selected-flag {
    border-color: var(--primary-pink) !important;
    box-shadow: 0 0 0 3px rgba(251, 98, 246, 0.2) !important;
}

/* Dropdown styling */
.iti__country-list {
    border: 1px solid var(--primary-pink) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 15px rgba(48, 118, 248, 0.2) !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    margin-top: 2px !important;
    z-index: 1000 !important;
}

.iti__country-list .iti__country {
    padding: 8px 12px !important;
}

.iti__country-list .iti__country:hover {
    background-color: rgba(251, 98, 246, 0.1) !important;
}

.iti__country-list .iti__country.iti__highlight {
    background-color: rgba(251, 98, 246, 0.2) !important;
}

/* Arrow styling */
.iti__arrow {
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 4px solid var(--gray) !important;
    border-bottom: none !important;
    height: 0 !important;
    width: 0 !important;
}

.iti--show-flags .iti__arrow {
    margin-left: 6px !important;
}

/* Force override any remaining intl-tel-input default styles */
.form-group .iti--allow-dropdown {
    width: 100% !important;
}

.form-group .iti--allow-dropdown input {
    margin: 0 !important;
    padding-left: 16px !important;
}

/* Fix placeholder visibility */
.iti--allow-dropdown input::placeholder {
    color: var(--gray) !important;
    opacity: 1 !important;
}


.iti input[type=tel]:focus,
.iti__flag-container:focus,
.iti__flag-container:focus-within {
    box-shadow: none !important;
    outline: none !important;
}


/* Kill focus glow/outline on the flag container completely */
.iti__flag-container,
.iti__selected-flag {
    outline: none !important;
}

.iti__flag-container:focus,
.iti__flag-container:focus-within,
.iti__selected-flag:focus,
.iti__selected-flag:active {
    outline: none !important;
    box-shadow: none !important;
}
