/* Load Poppins locally */
/* Regular (400) */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-v23-latin-regular.woff2') format('woff2');
  font-weight: 400;
}

/* Light (300) */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-v23-latin-300.woff2') format('woff2');
  font-weight: 300;
}

/* Medium (500) */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-v23-latin-500.woff2') format('woff2');
  font-weight: 500;
}

/* SemiBold (600) */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-v23-latin-600.woff2') format('woff2');
  font-weight: 600;
}
:root {
  --primary-color: #0D1936;
  --secondary-color: #868686;
  --background-color: #EFEFEF;
  --white-color: #fff;
  --input-border-color: #E3E4E6;
  --label-text-color: #c2c2c2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden; 
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0078d0, #004375);
}


#loginError {
    font-size: 14px;    
    padding: 8px 12px;      
    border-radius: 6px;  
    max-width: 100%;          
    word-break: break-word;    
}

.login-container {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow-y: hidden;
}

.login-left {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #b3f8b0;
  text-align: center;
  position: relative;
}

/* Decorative vertical line */
.login-left::after {
  content: "";
  position: absolute;
  top: 15%;   
  bottom: 25%; 
  right: 0;
  width: 5px;   
  background: 
    linear-gradient(
      to bottom, 
      #013b76 10%, 
      #126dff 50%,  
      transparent 50%, 
      transparent 40%, 
      #0073f7 60%,   
      #1a57ff 100%
    );
}

.bg-line {
  position: fixed;  
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
  background: 
    linear-gradient(
      to bottom, 
      transparent 10%, 
      transparent 30%, 
      #006dfc 40%, 
      #224afc 100%
    );
  z-index: 0;   
}

/* Decorative vertical line */
.login-left::after {
    content: "";
    position: absolute;
    top: 10%;
    bottom: 20%;
    right: 0;
    width: 3px;
    background: linear-gradient(to bottom, #97ffff 5%, #057efb 40%, transparent 10%, transparent 30%, #0478cb 40%, #3875b3 100%);
}

.login-left h1 {
  font-size: 28px;
  margin-top: 15px;
color: #c0fcd4;

}
.login-left p {
  font-size: 14px;
  opacity: 0.8;
color: #c0fcd4;
}


/* Right Side */
.login-right {
  flex: 0 0 50%;       
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Login Card */
.login-card {
  width: 360px;
  background: #90ad77;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  animation: fadeIn 0.6s ease;
}
.login-card h2 {
  margin-bottom: 25px;
  font-size: 26px;
  font-weight: 400;
  text-align: center;
  color: #7caffc;
}

/* Input Fields */
.input-box {
  position: relative;
  margin-bottom: 20px;
}
.input-box input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}


.input-box i {
    position: absolute;
    top: 65%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 20px;
    color: #02518b;
    cursor: pointer;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: .875em;
    color: #fa9e13;
}


/* Button */
.input-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.input-submit:hover {
  opacity: 0.9;
}

/* Bottom Links */
.bottom {
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
}
.bottom a {
  color: #5f9fff;
  text-decoration: none;
}
.bottom a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}



.toggle-password {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #6c757d;
  z-index: 5;
}


.toggle-password:hover {
  color: #0d6efd; /* primary blue when hover */
}



.brand-block img {
  height: 70px;
  margin-bottom: 20px;
}

.brand-block h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.brand-block .tagline {
  font-size: 14px;
  opacity: 0.9;
}

/* Login card */
.login-card {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(135deg, #0394ff, #023257);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    padding: 30px;
    animation: fadeIn 0.5s ease-in-out;
}
/* Header inside card */
.login-title {
  font-size: 18px;
  color: white;
  font-weight: 600;
  display: block;
  margin-top: 5px;
}

/* Input box */
.input-box {
  position: relative;
  margin-bottom: 20px;
}



.input-box label {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--label-text-color);
}

.input-field {
    min-width: 310px;
    height: 42px;
    padding: 0 38px 0 12px;
    border: 1px solid var(--input-border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all .3s ease-in-out;
}

.input-field:focus {
  border-color: #03fd10;
  outline: none;
}

.input-field:focus ~ i {
  color: #00612c;
}

/* Submit button */
.input-submit {
    background: #265fa7;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    padding: 11px;
    border-radius: 8px;
    margin-top: 10px;
    transition: all .3s ease-in-out;
}

.input-submit:hover {
    background: #70b7f9;
}

/* Bottom links */
.bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}

.bottom span a {
  font-size: 13px;
  color: #a2a2a2;
  text-decoration: none;
}

.bottom span a:hover {
  text-decoration: underline;
  color: #fffcfc;

}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }
  .login-left {
    flex: none;
    height: 180px;
  }
  .login-right {
    flex: none;
    height: auto;
  }
}

.glass-bg {
  background: rgba(255, 255, 255, 0.2);  /* semi transparent */
  backdrop-filter: blur(10px);           /* blur background */
  -webkit-backdrop-filter: blur(10px);   /* for Safari */
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.input-field::placeholder {
  font-size: 11px;   
  color: #999;        
  opacity: 0.5;      
}