@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

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

:root {
  
  --white-color: #fff;
  --black-color: #000000;
  --primary-color:#EE0202; 
  --secondary-color: #4d81db ;
  --tertiary-color :#FFECDB; 
  --quaternary-color : #fffb00; 
    
  
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-xxl: 32px;
  --font-size-xxxl: 74px;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}



.container {
    display: flex;
    max-width: 100%;
    background: var(--white-color);
    overflow: hidden;
    height: 100%;
}

.form-section {
    flex: 1;
    padding: 40px 30px;
    overflow-y: auto;
}
.form-section h2 {
    margin-bottom: 25px;
    color: var(--black-color);
}
.input-group {
    position: relative;
    margin-bottom: 20px;
}
.input-group i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--black-color);
    font-size: 18px;
}


.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="tel"],
.input-group input[type="date"] {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0;
    font-size: 15px;
    transition: border-color 0.3s;
    background: transparent;
}

.input-group input[type="text"]:focus,
.input-group input[type="email"]:focus,
.input-group input[type="password"]:focus,
.input-group input[type="tel"]:focus,
.input-group input[type="date"]:focus {
    border-bottom-color: darkred;
    outline: none;
}

.gender-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 15px;
    color: #555;
}
.gender-group label {
    cursor: pointer;
}
.gender-group input[type="radio"] {
    margin-right: 6px;
    cursor: pointer;
}

.input-group .toggle-password {
  position: absolute;
  top: 50%;
  left: 275px;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--black-color);
  cursor: pointer;
}


button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 17px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
}
button:hover {
    background-color: darkred;
}

.form-check {
    margin-top: 15px;
    font-size: 14px;
    color: var(--primary-color);
}
.form-check input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}
.terms-link {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}
.terms-link:hover {
    text-decoration: underline;
}
.image-section {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1555266375-5dfce345342d?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8N3x8cmVkJTIwZmFzaGlvbnxlbnwwfHwwfHx8MA%3D%3D') center center/cover no-repeat;
}

.form-section::-webkit-scrollbar {
    width: 6px;
}
.form-section::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.form-columns {
    display: flex;
    gap: 30px;
}

.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.right-column {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1684701554902-f305c9a1095f?q=80&w=771&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') 
                no-repeat center center/cover;
    position: relative;
    min-height: 100%;
    padding: 20px;
    flex: 1;
    flex-direction: column;
}


.right-column::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}


.steps-container {
    position: relative;
    z-index: 2;
    max-width: 350px;
    width: 100%;
}


.steps-glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}


.steps-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}


.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(15px);
    animation: stepFade 0.5s ease forwards;
}

.steps-list li span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    text-align: center;
    font-weight: bold;
    line-height: 24px;
    font-size: 0.9rem;
}


.steps-list li:nth-child(1) { animation-delay: 0.2s; }
.steps-list li:nth-child(2) { animation-delay: 0.4s; }
.steps-list li:nth-child(3) { animation-delay: 0.6s; }
.steps-list li:nth-child(4) { animation-delay: 0.8s; }
.steps-list li:nth-child(5) { animation-delay: 1.0s; }
.steps-list li:nth-child(6) { animation-delay: 1.2s; }


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

@keyframes stepFade {
  to { opacity: 1; transform: translateY(0); }
}

.password-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
    margin-left: 30px; 
}

.password-strength {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}

#strength-bar {
  height: 100%;
  width: 1%;
  background: #D73F40;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* FIX: Remove browser-generated eye icons for password fields */
.input-group input[type="password"]::-ms-reveal,
.input-group input[type="password"]::-ms-clear,
.input-group input[type="text"]::-ms-reveal,
.input-group input[type="text"]::-ms-clear {
    display: none;
}

/* FIX: Ensure no pseudo-elements create duplicate icons */
.input-group input::after,
.input-group input::before {
    background-image: none !important;
    content: none !important;
}

.left-column .gender-group {
    gap: 20px;
}

.image-section-content {
    text-align: center;
    color:var(--white-color);
    font-family: 'Poppins', sans-serif
}

.image-section-img {
    max-width: 432px;
    height: auto;
    transform: scale(1.2);
}

.image-section p {
    margin: 0.5rem 0;
    font-size: 18px;
}
.image-section .sign-in a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    cursor: pointer;
}
.image-section .sign-in a:hover {
    color: #0056b3;
    text-decoration: underline;
}

#termsOverlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
    overflow: auto;
}

#termsModal {
    background: var(--white-color);
    max-width: 700px;
    margin: 5% auto;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: relative;
}

#termsModal h6 {
    margin-top: 20px;
}

#termsModal .modal-buttons {
    margin-top: 30px;
    text-align: right;
}
#termsModal button {
    padding: 8px 16px;
    margin-left: 10px;
    font-size: 14px;
    cursor: pointer;
}

/* ============================================= */
/* RESPONSIVE DESIGN FOR REGISTER PAGE */
/* ============================================= */

/* Tablet Devices (768px and below) */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .form-section {
        padding: 30px 25px;
        overflow-y: visible;
        order: 2;
        flex: none;
    }
    
    .right-column {
        min-height: 300px;
        order: 1;
        flex: none;
    }
    
    .form-columns {
        flex-direction: column;
        gap: 0;
    }
    
    .left-column {
        flex: none;
        width: 100%;
    }
    
    .steps-container {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .steps-glass {
        padding: 20px;
    }
    
    .input-group .toggle-password {
        left: auto;
        right: 12px;
    }
}

/* Mobile Devices (480px and below) */
@media screen and (max-width: 480px) {
    body, html {
        overflow-y: auto;
        height: auto;
    }
    
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .form-section h2 {
        font-size: var(--font-size-xl);
        margin-bottom: 20px;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    .input-group input[type="text"],
    .input-group input[type="email"],
    .input-group input[type="password"],
    .input-group input[type="tel"],
    .input-group input[type="date"] {
        padding: 10px 10px 10px 35px;
        font-size: var(--font-size-sm);
    }
    
    .input-group i {
        font-size: 16px;
        left: 10px;
    }
    
    .input-group .toggle-password {
        right: 10px;
        font-size: 16px;
    }
    
    button {
        padding: 12px;
        font-size: var(--font-size-md);
    }
    
    .gender-group {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .right-column {
        min-height: 250px;
        padding: 15px;
    }
    
    .steps-glass {
        padding: 15px;
        border-radius: 15px;
    }
    
    .steps-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .steps-list li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .password-hint {
        font-size: 0.8rem;
        margin-left: 35px;
    }
    
   
    #termsModal {
        margin: 10% 15px;
        padding: 20px;
        max-width: none;
    }
    
    #termsModal .modal-buttons {
        text-align: center;
    }
    
    #termsModal button {
        margin: 5px;
        width: auto;
        display: inline-block;
    }
}

/* Small Mobile Devices (360px and below) */
@media screen and (max-width: 360px) {
    .form-section {
        padding: 20px 15px;
    }
    
    .form-section h2 {
        font-size: var(--font-size-lg);
    }
    
    .input-group input[type="text"],
    .input-group input[type="email"],
    .input-group input[type="password"],
    .input-group input[type="tel"],
    .input-group input[type="date"] {
        padding: 8px 8px 8px 32px;
        font-size: var(--font-size-xs);
    }
    
    button {
        padding: 10px;
        font-size: var(--font-size-sm);
    }
    
    .right-column {
        min-height: 200px;
        padding: 10px;
    }
    
    .steps-glass {
        padding: 12px;
    }
    
    .steps-title {
        font-size: 1.1rem;
    }
    
    .steps-list li {
        font-size: 0.85rem;
    }
    
    .steps-list li span {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 0.8rem;
        margin-right: 8px;
    }
}

/* Large Mobile Devices (481px to 767px) */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .form-section {
        padding: 35px 30px;
    }
    
    .right-column {
        min-height: 280px;
    }
    
    .steps-container {
        max-width: 450px;
    }
}

/* Small Desktop (769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
        margin: 20px auto;
        height: auto;
        min-height: 85vh;
    }
    
    .form-section {
        padding: 35px 25px;
    }
    
    .right-column {
        padding: 25px;
    }
    
    .steps-container {
        max-width: 300px;
    }
    
    .steps-glass {
        padding: 20px;
    }
    
    .input-group .toggle-password {
        left: auto;
        right: 15px;
    }
}


@media screen and (max-height: 600px) and (orientation: landscape) {
    .container {
        height: auto;
        min-height: 100vh;
    }
    
    .form-section {
        padding: 20px 25px;
    }
    
    .input-group {
        margin-bottom: 12px;
    }
    
    .right-column {
        min-height: 200px;
    }
    
    .steps-list li {
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
}


@media screen and (min-width: 1200px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .form-section {
        padding: 50px 40px;
    }
    
    .right-column {
        padding: 30px;
    }
    
    .steps-container {
        max-width: 400px;
    }
}


@media screen and (min-resolution: 120dpi) {
    .input-group input[type="text"],
    .input-group input[type="email"],
    .input-group input[type="password"],
    .input-group input[type="tel"],
    .input-group input[type="date"] {
        border-bottom-width: 1.5px;
    }
}


@media print {
    .right-column {
        display: none;
    }
    
    .form-section {
        width: 100%;
    }
}


@media (prefers-reduced-motion: reduce) {
    .steps-glass,
    .steps-list li {
        animation: none;
        opacity: 1;
        transform: none;
    }
}


@media (hover: none) and (pointer: coarse) {
    .input-group input[type="text"],
    .input-group input[type="email"],
    .input-group input[type="password"],
    .input-group input[type="tel"],
    .input-group input[type="date"] {
        font-size: 16px; 
    }
    
    button {
        min-height: 44px; 
    }
    
    .form-check input[type="checkbox"] {
        transform: scale(1.2); 
    }
}