/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    padding:0;
    margin: 0;
}


/* Header styles */
.header {
  background-color: #005C23;
  display: flex;
  align-items: center;
  padding: 0 30px;
  height: 120px;
  margin-top: 30px;
  margin-bottom: 25px;
  width: 100%;
}

.logo-container {
  flex-shrink: 0;
}

.institute-logo {
  width: 100px;
  height: 100px;
}

.header h1 {
  font-size: 35px;
  color: #ffffff;
  margin-left: 20px;
  font-weight: normal;
  
  line-height: 1.3;
  text-align: center;
  margin-left: 250px;
}

/* Form styles */
.form{
    margin: 50px;
    margin-left:475px
}
.login-form {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px;
}

a{
    font-weight: lighter;
    color: #4CAF50;
     'Times New Roman', Times, serif;
    text-decoration: none;
}

.input-group {
    margin-bottom: 10px;
    margin-top: 5px;

}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.input-group input:focus {
    outline: none;
    border-color: #aaa;
}

/* Checkbox options */
.options {
    margin: 15px 0;
}

.checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.checkbox-option input {
    opacity: 0;
    position: absolute;
}

.checkmark {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
}

.checkbox-option input:checked ~ .checkmark {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.checkbox-option input:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Login button */
.login-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 8px;
    display: inline-flex; 
    justify-content: center;
    align-items: center; 
    min-width: 120px;
}

.login-button:hover {
    background-color: #036d2b;
}
.modal { 
    display:none; 
    position:fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background:rgba(0,0,0,0.5); 
    justify-content:center; 
    align-items:center; }

.modal-content { 
    background:#fff; 
    padding:20px; 
    border-radius:5px; 
    width:300px; 
    text-align:center; 
    position:relative; }

.close { 
    position:absolute; 
    top:10px; 
    right:10px; 
    cursor:pointer; 
    font-size:20px; }
#forgotModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}
#forgotModal.active {
  display: flex;
}
/* Add this to css/login.css */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Dim background */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
}
.swal2-container {
    z-index: 99999 !important;
}
/* Responsive Header */
@media screen and (max-width: 1024px) {
    .header {
        padding: 0 20px;
        height: 100px;
        margin-top: 25px;
        margin-bottom: 20px;
    }
    
    .institute-logo {
        width: 80px;
        height: 80px;
    }
    
    .header h1 {
        font-size: 28px;
        margin-left: 150px;
    }
}

@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 20px;
        text-align: center;
        gap: 15px;
    }
    
    .institute-logo {
        width: 70px;
        height: 70px;
    }
    
    .header h1 {
        font-size: 24px;
        margin-left: 0;
        line-height: 1.2;
    }
}

@media screen and (max-width: 479px) {
    .header {
        padding: 15px;
        margin-top: 20px;
        margin-bottom: 15px;
    }
    
    .institute-logo {
        width: 60px;
        height: 60px;
    }
    
    .header h1 {
        font-size: 20px;
    }
}
/* Responsive Form Layout */
@media screen and (max-width: 1024px) {
    .form {
        margin: 40px auto;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        justify-content: center;
    }
    
    .login-form {
        max-width: 350px;
        padding: 25px;
    }
}

@media screen and (max-width: 768px) {
    .form {
        margin: 30px 20px;
    }
    
    .login-form {
        max-width: 100%;
        padding: 20px;
    }
    
    .input-group input {
        padding: 10px 12px;
        font-size: 15px;
    }
}

@media screen and (max-width: 479px) {
    .form {
        margin: 20px 15px;
    }
    
    .login-form {
        padding: 15px;
        border-radius: 6px;
    }
    
    .input-group {
        margin-bottom: 8px;
        margin-top: 3px;
    }
    
    .input-group input {
        padding: 8px 10px;
        font-size: 14px;
    }
}
/* Responsive Options and Checkbox */
@media screen and (max-width: 768px) {
    .options {
        margin: 12px 0;
    }
    
    .checkbox-option {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .checkmark {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
    
    .checkbox-option input:checked ~ .checkmark:after {
        left: 5px;
        top: 1px;
        width: 4px;
        height: 8px;
    }
}

@media screen and (max-width: 479px) {
    .checkbox-option {
        font-size: 12px;
    }
    
    .checkmark {
        width: 14px;
        height: 14px;
    }
}
/* Responsive Login Button */
@media screen and (max-width: 768px) {
    .login-button {
        padding: 10px;
        font-size: 15px;
        min-width: 100px;
    }
}

@media screen and (max-width: 479px) {
    .login-button {
        padding: 8px;
        font-size: 14px;
    }
}
/* Responsive Modal */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 90%;
        max-width: 280px;
        padding: 15px;
    }
    
    .close {
        top: 8px;
        right: 8px;
        font-size: 18px;
    }
}

@media screen and (max-width: 479px) {
    .modal-content {
        width: 95%;
        max-width: 250px;
        padding: 12px;
    }
    
    .close {
        top: 5px;
        right: 5px;
        font-size: 16px;
    }
}
/* Responsive Links */
@media screen and (max-width: 768px) {
    a {
        font-size: 14px;
    }
}

@media screen and (max-width: 479px) {
    a {
        font-size: 13px;
    }
}
/* Additional Mobile Optimizations */
@media screen and (max-width: 768px) {
    body {
        padding: 0;
    }
    
    /* Prevent zoom on iOS input focus */
    @media screen and (max-width: 768px) {
        input, select, textarea {
            font-size: 16px !important;
        }
    }
}

/* High-resolution devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .institute-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header {
        background-color: white !important;
        color: black !important;
    }
    
    .header h1 {
        color: black !important;
    }
    
    .login-form {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}