/* partner-login.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: serif;
}

body {
    background-color: white;
    color: #333;
}

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

.image-section {
    
    flex: 1;
    background-image: url('../images/desktop2.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}
#form-title {
    display: block;
    margin-block-start: 1.33em;
    margin-block-end: 1.33em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.form-container::before {
    content: "";
    display: block;
    width: 186px;
    height: 96px;
    margin: -16px auto 12px auto;
    background-image: url('../images/icons/Kerala\ Vision\ Logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.form-container {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    height: 535px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #414f4f;
}



.toggle-container {
    display: flex;
    background-color: rgb(238, 233, 233);
    border-radius: 30px;
    margin-bottom: 30px;
    position: relative;
}

.toggle-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s;
    font-weight: 600;
}

.toggle-btn.active {
    color: white;
}

.slider {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: #15a7d3;
    border-radius: 30px;
    transition: transform 0.3s;
}

.form {
    display: none;
}

.form.active {
    display: block;
}

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

/*.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}*/
.material-field {
  position: relative;
  width: 333px;
  margin: 30px 0;
}

.material-field input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
  background: transparent;
  font-family: 'Roboto', sans-serif;
}

.material-field label {
  position: absolute;
  top: 10px;
  left: 0;
  color: #999;
  transition: 0.3s;
  pointer-events: none;
}

.material-field input:focus ~ label,
.material-field input:valid ~ label {
  top: -15px;
  font-size: 12px;
  color: #171818;
}

.material-field .underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #4285f4;
  transition: 0.3s;
}

.material-field input:focus ~ .underline {
  width: 100%;
}

/* Form container styling */
/*.login-form {
  max-width: 320px;
  margin: 50px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}*/

/* Password field specific styles */
.password-container {
  padding-right: 30px; /* Space for eye icon */
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 10px;
  cursor: pointer;
  color: #666;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: all 0.3s;
}

.password-toggle:hover .eye-icon {
  fill: #4285f4;
}

.material-field:first-child {
  margin-top: 10px;
}

.material-field:last-child {
  margin-bottom: 10px;
}


.remember-forgot {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            margin-top: 27px;
        }
        
        .remember-me {
            display: flex;
            align-items: center;
        }
        
        .remember-me input {
            margin-right: 8px;
        }
        .fpass{
            color: #333;
        }


.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #15a7d3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #129ec9;
}

.support {
    text-align: center;
    margin-top: 30px;
    color: #666;
}

.support a {
    color: #4a6fa5;
    text-decoration: none;
}

footer {
    text-align: center;
    margin-top: 13px;
    color: #666;
    font-size: 14px;
    position: relative; 
    padding-top: 70px; 
}


footer::before {
    content: "";
    display: inline-block;
    width: 135px;
    height: 76px;
    background-image: url('../images/google-play-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-100%); 
    margin-right: 10px;
}

footer::after {
    content: "";
    display: inline-block;
    width: 135px;
    height: 76px;
    background-image: url('../images/app-store-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(0%); 
    margin-left: 10px; 
}

footer a {
    color: #4a6fa5;
    text-decoration: none;
    
}




/* Mobile View */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .image-section {
        background-image: url('../images/desktop.jpg');
        min-height: 200px;
        width: 100%;
        order: -1;
    }
    
    .form-section {
        padding: 20px;
        background-color: white;
    }

    .form-container {
        padding: 10px;
        background-color: white;
    }

    .form-container::before {
        content: "";
        display: block;
        width: 167px;
        height: 87px;
        margin: 12px auto 12px auto;
        background-image: url('../images/icons/Kerala\ Vision\ Logo.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    
   
    .form-header h3 {
        font-size: 74%;
    }
    
    .form-group input {
        padding: 10px 15px;
        border: 2px solid #ddd;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px;
    }
    footer {
        text-align: center;
        margin-top: 13px;
        color: #666;
        font-size: 14px;
        position: relative; 
        padding-top: 70px; 
    }
    
    
    footer::before {
        content: "";
        display: inline-block;
        width: 140px;
        height: 76px;
        background-image: url('../images/google-play-logo.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-100%); 
        margin-right: 10px; 
    }
    
  
    footer::after {
        content: "";
        display: inline-block;
        width: 140px;
        height: 76px;
        background-image: url('../images/app-store-logo.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(0%); 
        margin-left: 10px; 
    }
    
    footer a {
        color: #4a6fa5;
        text-decoration: none;
        
    }
}
 



@media (min-width: 767px) and (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    

    .image-section {   
        background-image: url('../images/ipad.jpg');
        min-height: 200px;
        width: 100%;
        order: -2;
    }
    
    .form-section {
        padding: 40px;
        background-color: white;
    }

    .form-container {
        padding: 20px;
        background-color: white;
    }

    .form-container::before {
        content: "";
        display: block;
        width: 200px;
        height: 104px;
        margin: 20px auto 20px auto;
        background-image: url('../images/icons/Kerala\ Vision\ Logo.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }


 .form-container {
    width: 100%;
    max-width: 555px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    height: 605px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}





    .form-header h3 {
        font-size: 100%;
    }
    
    .form-group input {
        padding: 12px 18px;
        border: 2px solid #ddd;
        font-size: 16px;
    }



    .material-field {
  position: relative;
  width: 480px;
  margin: 30px 0;
}

.material-field input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
  background: transparent;
  font-family: 'Roboto', sans-serif;
}

.material-field label {
  position: absolute;
  top: 10px;
  left: 0;
  color: #999;
  transition: 0.3s;
  pointer-events: none;
}

.material-field input:focus ~ label,
.material-field input:valid ~ label {
  top: -15px;
  font-size: 12px;
  color: #171818;
}

.material-field .underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #4285f4;
  transition: 0.3s;
}

.material-field input:focus ~ .underline {
  width: 100%;
}

/* Form container styling */
/*.login-form {
  max-width: 320px;
  margin: 50px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}*/

/* Password field specific styles */
.password-container {
  padding-right: 30px; 
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 10px;
  cursor: pointer;
  color: #666;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: all 0.3s;
}

.password-toggle:hover .eye-icon {
  fill: #4285f4;
}

.material-field:first-child {
  margin-top: 10px;
}

.material-field:last-child {
  margin-bottom: 10px;
}

    
    .submit-btn {
        padding: 14px;
        font-size: 16px;
    }
    
    footer {
        text-align: center;
        margin-top: 20px;
        color: #666;
        font-size: 16px;
        position: relative; 
        padding-top: 80px; 
    }
    
    footer::before {
        content: "";
        display: inline-block;
        width: 160px;
        height: 87px;
        background-image: url('Google.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-100%); 
        margin-right: 15px; 
    }
    
    footer::after {
        content: "";
        display: inline-block;
        width: 160px;
        height: 87px;
        background-image: url('apple\ 22.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(0%); 
        margin-left: 15px; 
    }
    
    footer a {
        color: #4a6fa5;
        text-decoration: none;
    }
}

@media (min-width: 1200px) and (max-width: 1400px) {
    .image-section {
        /* display: none; */
    }
    .form-section {
        width: 100%;
    }
}
.container-login100 {
    width: 100%;
    /*height: 100vh;*/
    height: calc(100vh - 30px);
    min-height: auto;
    justify-content: end;
    background-repeat: no-repeat;
    background-size: cover;
    /*background-size: 100% 100%;*/
    background-position: center center;
    background-position: 0 15%;
    background-image: url(../images/bg-01.jpg);    
}
@media (max-width: 767px) {
    .body-login {
        .container-login100 { 
            height: calc(100vh - 85px);
            background-size: cover;
            overflow: hidden;
            overflow-y: auto;
        }
    }
    .bottom-logos-block { margin-top: 25px!important; }
    .bottom-logos-block .bottom-logos-box { justify-self: anchor-center!important; justify-content: center !important; }
    .login-footer .navbar-nav {
        flex-flow: wrap;
        column-gap: 35px;
        justify-content: center;
    }
    .bottom-logos-block-left .bottom-logos-box { justify-content: center; }
}
@media (min-width: 768px) {
    .container-login100 { padding-right: 50px; }
    .bottom-logos-block .bottom-logos-box { gap: 10px;}
}

.login100-form-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    font-weight: 500;
    position: relative;
}
.login100-form-error .btn-close {
    width: 3px;
    height: 3px;
}


/* Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
}

/* Modal container */
.modal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 0.3rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.5);
    z-index: 1060;
    width: 90%;
    max-width: 500px;
    animation: fadeIn 0.3s ease-out;
}

/* Header, body, footer */
.modal-header, .modal-body, .modal-footer {
    padding: 1rem;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dee2e6;
}
.modal-title {
    margin: 0;
    font-size: 1.25rem;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #dee2e6;
}

/* Close button */
.modal .close {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    background: none;
    border: none;
    cursor: pointer;
}
.modal .close:hover {
    opacity: 0.75;
}

/* Buttons */
.btn {
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}
.btn-primary:hover {
    background-color: #0b5ed7;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {opacity: 0; transform: translate(-50%, -48%);}
    to {opacity: 1; transform: translate(-50%, -50%);}
}

.modal-overlay {
    display: none;
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
}
.modal {
    display: none;
    position: fixed;
    top:50%; left:50%;
    transform: translate(-50%,-50%);
    background: #fff;
    border-radius: 0.3rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.5);
    z-index: 1060;
    width:90%; max-width:400px;
    animation: fadeIn 0.3s ease-out;
}
.modal-header, .modal-body, .modal-footer { padding: 1rem; }
.modal-header { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #dee2e6; }
.modal-title { margin:0; font-size:1.25rem; }
.modal .close { font-size:1.5rem; font-weight:700; line-height:1; color:#000; opacity:0.5; background:none; border:none; cursor:pointer;}
.modal .close:hover { opacity:0.75; }
.btn { padding:0.375rem 0.75rem; border-radius:0.25rem; font-size:1rem; border:1px solid transparent; cursor:pointer; }
.btn-primary { background-color:#0d6efd; color:#fff; border-color:#0d6efd; }
.btn-primary:hover { background-color:#0b5ed7; }
@keyframes fadeIn { from {opacity:0; transform:translate(-50%,-48%);} to {opacity:1; transform:translate(-50%,-50%);} }
.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .25rem;
    transition:border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}


/* Fullscreen dark background */
#termsModal {
 
 display: none;
    position: fixed;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 0.3rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.5);
    z-index: 1060;
    width: 90%;           /* takes up 90% of screen width */
    max-width: 900px;     /* adjust for "lg" look */
    animation: fadeIn 0.3s ease-out;
  /* flexbox center */
  align-items: center;
  justify-content: center;
}
#aboutUsModal {
 
 display: none;
    position: fixed;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 0.3rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.5);
    z-index: 1060;
    width: 90%;           /* takes up 90% of screen width */
    max-width: 900px;     /* adjust for "lg" look */
    animation: fadeIn 0.3s ease-out;
  /* flexbox center */
  align-items: center;
  justify-content: center;
}
#termsModal .modal-body h6 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1rem;
}
#termsModal .modal-body h5 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.25rem;
}
/* The actual modal box */
#termsModal .modal-box {
  background: #fff;
  width: 80%;         /* wider modal */
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
#termsModal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
}

/* Body */
#termsModal .modal-body {
  padding: 20px;
  max-height: 70vh;   /* keeps content scrollable */
  overflow-y: auto;
}

/* Close button */
#termsModal .close {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}
