@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* Global reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}


/* Body styling */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #ffffff;
}

/* Section styles */
section {
    position: absolute;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    overflow: hidden;
}

/* Animated gradient effect */


/* Animation keyframes */
@keyframes animate {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Styling for individual spans */




/* Main Content */
.container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    z-index: 1;
    padding: 20px;
    transition: all 0.3s;
    position: absolute;
    transform: translate(-50%, -50%);
    display: block;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    background: none;

}

.contact-link{
    text-align: end;
    color: #000 !important;

}

/* Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
     margin-bottom: 2%;
}

.logo-img {
    height: 230px;
    width: 230px;
    object-fit: contain;
}

.text-img {
    height: 100px;
    width: 150px;
    object-fit: contain;
    padding: none;
}

/* Buttons */
.login-container{
    margin-left: 5%;
    margin-right: 5%;
}
.btn {
    font-size: 16px;
    width: 240px;
    border-radius: 8px;
    padding: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-info {
    background-color: #500060;
    border-color: #000000;
    color: white;
}

.btn-info:hover {
    background-color: #000001;
    border-color: #000000;
    color: white;
}

.imgg{
    height: 20px;
    width: 20px;
}

/* Custom Checkbox Styles */
.agreement input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #500060;
    border-radius: 25px;
    outline: none;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    margin-right: 8px;
    transition: all 0.2s ease;
}

.agreement-container{

    top: 15px;
}

.agreement input[type="checkbox"]:checked {
    background-color: #500060;
    border-color: #500060;
}

.agreement input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    border-color: none;
    font-size: 14px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Focus state */
.agreement input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(80, 0, 96, 0.2);
}

/* Hover state */
.agreement input[type="checkbox"]:hover {
    border-color: #8101a8;
}

/* Modals */
.modal {
    z-index: 1060;
}

.modal-content {
    background: #ffffff; /* Slightly darker semi-transparent background */
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    
}



.modal-body{
    padding-left:30px;
    background-color: #ffffff;
    margin: none;
    transition: transform 0.3s ease; /* smooth movement */
}

.modal-header {
    border-bottom: none;
    padding-top: 10px;
    padding-left: 10px;
    background-color: #ffffff;
    padding-bottom: 0px;
    position: sticky;
    border-radius: 20px;
    
  top: 0;

    z-index: 10;
}

.modal-title
{
  font-size: 30px;
}
.modal-footer {
    border-top: none;
    margin: none;
    padding-top: 0%;
    position: sticky;
}

.footer-btn{
  margin: none;
  display: block;
  background-color: #650681 ;
  border: none;
  box-sizing: border-box;
  box-shadow: none;
  padding-top: 5px;
  padding-bottom: 5px;
  width: auto;
  font-size: 18px;
  color: #FFF;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  transition: background-color .2s ease-out;
}

/* Responsive */
@media (max-width: 900px) {
    section span {
        width: calc(10vw - 2px);
        height: calc(10vw - 2px);
    }
}

@media (max-width: 600px) {

    body {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

    section span {
        width: calc(20vw - 2px);
        height: calc(20vw - 2px);
    }
    
    .container {
        padding: 1.5em;
    }
    
    .text-img {
    height: 100px;
    width: 150px;
    object-fit: contain;
    padding: none;
    margin-bottom: 120px;
}
 
#googleSignInBtn,#signup,#tempAccessBtn
{
    color: #000;
    background-color: #ffffff;
    width: 100%;
}

#signin
{
  width: 100%;
}

}




/* Custom Red Popup Styles - Will override any browser alerts */
.floating-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #f44336;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  transform: translateY(20px);
  z-index: 10000 !important;
}

.floating-notification.show {
  opacity: 1;
  transform: translateY(0);
}


@keyframes popIn {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    100% { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

#googleSignInBtn,#signup,#tempAccessBtn
{
    color: #000;
    background-color: #ffffff;
    align-items: center;
}

#googleSignInBtn:hover,#signup:hover,#tempAccessBtn:hover
{
  background-color:#500060;
  color: #FFF;

}


h2{
color: #500060;
font-size: 20px;
}

.close:hover{
color: #000000 !important;
    transform: scale(1.1); /* Grows to 110% size */
    transition: transform 0.2s ease;
    border: none !important;
    display: none;
}

.form-control{

  display: block;
  margin: 0;
  background-color: #6003967f;
  border-radius: 40px;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  height: 45px;
  font-size: 16px;
  color: #000000;
  border: #000000 solid 0.5px;
  border-radius: 12px;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  transition: box-shadow .2s linear, border-color .25s ease-out;
}

.form-control:focus{
    outline: none;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.322);
  border: dashed 2.5px #000000;
}

body {
  background-color: #ffffff;
  background-image: radial-gradient(#6a4c93 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Dark mode */
@media (prefers-color-scheme: dark)
{


/* Body styling */
body {
    background: #ffffff;
}


/* Styling for individual spans */
section span {
    background: #ffffff;
}





#contactlink{
    color: #ffffff !important;

}



.btn-info {
    background-color: #500060;
    border-color: #000000;
    color: rgb(255, 255, 255);
    font-weight: 600;
}

.btn-info:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: rgb(0, 0, 0);
}


/* Custom Checkbox Styles */
.agreement input[type="checkbox"] {
    border: 2px solid #500060;
}


.agreement input[type="checkbox"]:checked {
    background-color: #500060;
    border-color: #500060;
}

.agreement input[type="checkbox"]:checked::after {
    color: rgb(255, 255, 255);
}

/* Focus state */
.agreement input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(80, 0, 96, 0.2);
}

/* Hover state */
.agreement input[type="checkbox"]:hover {
    border-color: #8101a8;
}

.agree{
color: #FFF;
}
.modal-content {
    background: #101010;
    color: white;
}

.close{
    color: #FFF;
}

.modal-body{
    background-color: #101010;
    color: white;
}

.modal-header {
    background-color: #101010;
    color: white;
}


.footer-btn{
  background-color: #650681 ;
  color: #000000;
}



/* Custom Red Popup Styles - Will override any browser alerts */
.floating-notification {
  background-color: #f44336;
  color: rgb(0, 0, 0);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

#googleSignInBtn,#signup,#tempAccessBtn
{
    color: #ffffff;
    background-color: #101010;
}

#googleSignInBtn:hover,#signup:hover,#tempAccessBtn:hover
{
  background-color:#500060;
  color: #000000;

}
body {
  background-color: #101010;
  background-image: radial-gradient(#6a4c93 1px, transparent 1px);
  background-size: 20px 20px;
}

h2{
color: #9c00bc;
}

.close:hover{
color: #ffffff !important;
}

.form-control{
  background-color: #6003967f;
  color: #ffffff;
  border: #ffffff solid 0.5px;
}

.form-control:focus{
  box-shadow: 0px 2px 10px rgba(255, 255, 255, 0.322);
  border: dashed 2.5px #ffffff;
}


}


/* Extra small devices (phones, less than 576px) */
@media (max-width: 450px) {
  /* Styles for very small screens */

      body {
    padding-top: none;
    padding-bottom: none;
  }



    .dflex {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 80%;        /* 80% of parent height */
        padding-bottom: 12%;    /* Approximate for 50px */
    }


body {
    height: 100vh;
}

/* Section styles */
section {
    width: 100%;
    height: 100%;
}

/* Main Content */
.container {
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    padding: 20px;
}



/* Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.logo-img {
    height: 60%;
    width: 60%;
    object-fit: contain;
}

.text-img {
    height: 50%;
    width: 50%;
    object-fit: contain;
    padding: none;
    margin-bottom: 50px;
}

/* Buttons */
.login-container{
    margin-left: 5%;
    margin-right: 5%;
}
.btn {
    width: 100%;
    padding: 4%;
}

.agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.agreement-container{
    top: 15%;
}


.agreement input[type="checkbox"]:checked::after {
    left: 50%;
    top: 50%;
}

.modal{
    margin-top: 10%;
    max-height: 90%;
}

.modal-body{
    padding-left:30px;
}

.modal-header {
    padding-top: 10px;
    padding-left: 10px;
    padding-bottom: 0px;
    position: sticky;
}

.modal-footer {
    padding-top: 0%;
}



    

 
#googleSignInBtn,#signup,#tempAccessBtn
{
    width: 100%;
}

#signin
{
  width: 100%;
}


.floating-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 2% 5%;

}


.contact-link{
top: none;
margin-top: none;


}

.cross{
    display: none;
}


}

/* Small devices (phones, 576px and up) */
@media (min-width: 450px) and (max-width: 767px) {
    .container {
        min-height: 90%;        /* 90% of parent’s height (or body if no parent) */
        padding: 5%;            /* Approximate conversion of 1.5em to 5% */
    }

    .logo-container {
        margin-top: 10%;        /* Approximate conversion of 40px (based on parent height) */
    }

/* Body styling */
body {
    height: 100vh;
}

/* Section styles */
section {
    width: 100vw;
    height: 100vh;
}

/* Main Content */
.container {
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    padding: 20px;
}



.logo-img {
    height: 60%;
    width: 60%;
    object-fit: contain;
}

.text-img {
    height: 40%;
    width: 40%;
    object-fit: contain;
    padding: none;
    margin-bottom: 140px;
}

/* Buttons */
.login-container{
    margin-left: 5%;
    margin-right: 5%;
}
.btn {
    width: 240px;
    padding: 11px;
}

.imgg{
    height: 20px;
    width: 20px;
}

/* Custom Checkbox Styles */
.agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.agreement-container{

    top: 15px;
}


.agreement input[type="checkbox"]:checked::after {
    left: 50%;
    top: 50%;
}




.modal{
    margin-top: 10%;
    max-height: 90%;
}


.modal-body{
    padding-left:30px;
}

.modal-header {
    padding-top: 10px;
    padding-left: 10px;
    padding-bottom: 0px;
    position: sticky;
}

.modal-footer {
    padding-top: 0%;
}

.footer-btn{
  padding-top: 5px;
  padding-bottom: 5px;
  width: auto;
}


    section span {
        width: calc(10vw - 2px);
        height: calc(10vw - 2px);
    }




    body {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

    section span {
        width: calc(20vw - 2px);
        height: calc(20vw - 2px);
    }
    
    .container {
        padding: 1.5em;
    }
 
#googleSignInBtn,#signup,#tempAccessBtn
{
    width: 100%;
}

#signin
{
  width: 100%;
}



.floating-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;

}

.form-control{
  width: 100%;
  height: 45px;
}

.cross{
    display: none;
}

}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  /* Styles for tablets */

  .container {
        min-height: 90%;        /* 90% of parent’s height (or body if no parent) */
        padding: 5%;            /* Approximate conversion of 1.5em to 5% */
    }

    .logo-container {
        margin-top: 10%;        /* Approximate conversion of 40px (based on parent height) */
    }

/* Body styling */
body {
    height: 100vh;
}

/* Section styles */
section {
    width: 100vw;
    height: 100vh;
}

/* Main Content */
.container {
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    padding: 20px;
}



.logo-img {
    height: 60%;
    width: 60%;
    object-fit: contain;
}

.text-img {
    height: 40%;
    width: 40%;
    object-fit: contain;
    padding: none;
    margin-bottom: 140px;
}

/* Buttons */
.login-container{
    margin-left: 5%;
    margin-right: 5%;
}
.btn {
    width: 240px;
    padding: 15px;
}

.imgg{
    height: 20px;
    width: 20px;
}

/* Custom Checkbox Styles */
.agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.agreement-container{

    top: 15px;
}


.agreement input[type="checkbox"]:checked::after {
    left: 50%;
    top: 50%;
}




.modal{
    margin-top: 10%;
    max-height: 90%;
}


.modal-body{
    padding-left:30px;
}

.modal-header {
    padding-top: 10px;
    padding-left: 10px;
    padding-bottom: 0px;
    position: sticky;
}

.modal-footer {
    padding-top: 0%;
}

.footer-btn{
  padding-top: 5px;
  padding-bottom: 5px;
  width: auto;
}


    section span {
        width: calc(10vw - 2px);
        height: calc(10vw - 2px);
    }




    body {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

    section span {
        width: calc(20vw - 2px);
        height: calc(20vw - 2px);
    }
    
    .container {
        padding: 1.5em;
    }
 
#googleSignInBtn,#signup,#tempAccessBtn
{
    width: 100%;
}

#signin
{
  width: 100%;
}



.floating-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;

}

.form-control{
  width: 100%;
  height: 45px;
}

.cross{
    display: none;
}


}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
  
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
  /* Styles for large screens */

}








/* ===== Core Keyboard Handling ===== */
:root {
  --keyboard-height: 300px; /* Default fallback, updated by JS */
}

html {
  box-sizing: border-box;
  height: 100%;
  overflow-x: hidden;
}

html.keyboard-open {
  overflow: hidden;
  height: calc(100% - 1px); /* Mobile viewport bug fix */
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available; /* iOS fix */
  transition: transform 0.25s ease-out;
}

.keyboard-open body {
  position: fixed;
  width: 100%;
  overflow-y: auto;
  max-height: 100vh;
  max-height: 100dvh;
  transform: translateY(calc(var(--keyboard-height) * -0.5)); /* Lift entire screen */
}

/* ===== Form Elements ===== */
input,
textarea,
[contenteditable="true"] {
  touch-action: manipulation;
}

/* ===== Scrollable Areas ===== */
.scrollable-content {
  max-height: 100vh;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

.keyboard-open .scrollable-content {
  max-height: calc(100vh - var(--keyboard-height));
}

/* ===== Fixed/Sticky Elements ===== */
.fixed-bottom,
.sticky-footer {
  transition: bottom 0.3s ease, transform 0.3s ease;
}

.keyboard-open .fixed-bottom {
  bottom: var(--keyboard-height) !important;
}

.keyboard-open .sticky-footer {
  transform: translateY(calc(var(--keyboard-height) * -1));
}

/* ===== Keyboard-Aware Elements ===== */
.keyboard-aware-element {
  transition: transform 0.3s ease;
}

.keyboard-open .keyboard-aware-element {
  transform: translateY(calc(var(--keyboard-height) * -1));
}

/* ===== Viewport Adjustments ===== */
@supports (height: 100dvh) {
  body {
    min-height: 100dvh;
  }
  
  .scrollable-content {
    max-height: 100dvh;
  }
  
  .keyboard-open .scrollable-content {
    max-height: calc(100dvh - var(--keyboard-height));
  }
}

/* ===== Responsive Tweaks ===== */
@media (max-height: 700px) {
  .keyboard-open body {
    transform: translateY(calc(var(--keyboard-height) * -0.7));
  }
  
  .keyboard-open .scrollable-content {
    max-height: calc(100vh - var(--keyboard-height) * 1.2);
  }
}
