body {
  background: rgb(241, 242, 246);
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

.bg-wrapper {
  width: 100%;
  height: 300px;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgb(241, 242, 246);
  overflow: hidden;
  z-index: 0;
}
.bg-wrapper .grid-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(to right, #e2e8f0 2px, transparent 1px), linear-gradient(to bottom, #e2e8f0 2px, transparent 1px);
  background-size: 20px 30px;
}
@supports ((-webkit-mask-image: radial-gradient(ellipse, #000, transparent)) or (mask-image: radial-gradient(ellipse, #000, transparent))) {
  .bg-wrapper .grid-bg {
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
  }
}

.container {
  position: absolute;
  top: 25%;
  left: 12%;
  width: 25%;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  background: rgb(241, 242, 246);
  box-shadow: 5px 5px 11px #7c7a7a;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.container:hover {
  transform: translateY(-5px);
}
.container h1 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  font-style: bold;
  text-align: center;
  top: 1%;
  color: #ff7f00;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.container .form-box {
  width: 80%;
  height: 70%;
}
.container .form-box .input-group {
  top: 1%;
  right: 1.5%;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  /* Tighten spacing between username and password */
  /* Password field specific */
}
.container .form-box .input-group:first-of-type {
  margin-bottom: 2px;
}
.container .form-box .input-group:last-child {
  position: relative;
}
.container .form-box .input-group:last-child input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 45px; /* Space for eye icon */
  /* When input scales up (1.05), adjust eye position */
  /* Show eye toggle when focused, hovered, or has content */
}
.container .form-box .input-group:last-child input:focus ~ .eye-toggle {
  right: 15.75px;
  transform: translateY(-50%) scale(0.9523809524);
}
.container .form-box .input-group:last-child input:not(:-moz-placeholder) + .eye-toggle {
  opacity: 0.7;
  visibility: visible;
  pointer-events: auto;
  right: 15.75px;
  transform: translateY(-50%) scale(0.9523809524);
}
.container .form-box .input-group:last-child input:focus + .eye-toggle, .container .form-box .input-group:last-child input:hover + .eye-toggle, .container .form-box .input-group:last-child input:not(:placeholder-shown) + .eye-toggle {
  opacity: 0.7;
  visibility: visible;
  pointer-events: auto;
  right: 15.75px;
  transform: translateY(-50%) scale(0.9523809524);
}
.container .form-box .input-group input {
  border: none;
  outline: none;
  width: 95%;
  border-radius: 20px;
  padding: 1em;
  background-color: #ccc;
  box-shadow: inset 2px 5px 10px rgba(0, 0, 0, 0.3);
  transition: all 300ms ease-in-out;
  font-size: 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  height: 10%;
  color: #333;
}
.container .form-box .input-group input:focus {
  background-color: #ffffff;
  transform: scale(1.05);
  box-shadow: 13px 13px 100px #969696, -13px -13px 100px #ffffff;
}
.container .form-box .input-group input::-moz-placeholder {
  color: rgba(51, 51, 51, 0.6);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.container .form-box .input-group input::placeholder {
  color: rgba(51, 51, 51, 0.6);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.container .form-box .input-group .eye-toggle {
  position: absolute;
  right: 2%;
  top: 26px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease-in-out;
  z-index: 100;
}
.container .form-box .input-group .eye-toggle:hover {
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.1);
}
.container .form-box .input-group .eye-toggle.visible {
  opacity: 0.7;
  visibility: visible;
}
.container .form-box .input-group .forgot {
  margin-top: 5px;
  text-align: right;
}
.container .form-box .input-group .forgot a {
  text-decoration: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #ff7f00;
  font-size: 16px;
  transition: color 0.3s ease;
}
.container .form-box .input-group .forgot a:hover {
  text-decoration: underline;
  color: rgb(255, 99, 72);
}
.container .form-box .input-group .error-message {
  color: #ff3860;
  font-size: 0.875rem;
  margin: 0.25rem 0 0.5rem 0.5rem;
  animation: fadeIn 0.3s ease;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.container .form-box .btn_login {
  top: 15%;
  left: 17%;
  width: 250px;
  height: 45px;
  background: #1d8340;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 22px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: 75px;
  transition: all 0.3s ease;
}
.container .form-box .btn_login:hover {
  color: #1d8340;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.container .form-box .btn_login:active {
  transform: translateY(0);
}
.container .form-box .btn_login::after {
  content: "";
  background: #ffffff;
  position: absolute;
  z-index: -1;
  left: -20%;
  right: -20%;
  top: 0;
  bottom: 0;
  transform: skewX(-45deg) scale(0, 1);
  transition: all 0.5s;
}
.container .form-box .btn_login:hover::after {
  transform: skewX(-45deg) scale(1, 1);
  transition: all 0.5s;
}
.container .form-box .btn_login.loading {
  opacity: 0.8;
  cursor: wait;
}
.container .form-box .btn_login.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loadingShimmer 1.5s infinite;
}
.container .form-box .btn_login.success {
  background-color: #48c774;
  animation: pulse 1.5s infinite;
}
.container .form-box .btn_login.success:hover {
  color: #ffffff;
}

.error-input {
  border: 2px solid #ff3860 !important;
}
.error-input:focus {
  border: 2px solid #ff3860 !important;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0) scale(1.05);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-4px) scale(1.05);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(4px) scale(1.05);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes loadingShimmer {
  100% {
    left: 100%;
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}
@keyframes slideInRight {
  from {
    transform: translateX(100%) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}
.OSTI_img {
  display: flex;
  position: absolute;
  top: 0%;
  right: 5%;
  height: 100%;
  width: 55%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  background-image: url("/images/osti.png");
  background-size: 50% auto;
  background-repeat: no-repeat;
  background-position: center;
}
.OSTI_img:hover {
  opacity: 1;
}

.custom-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: #ffffff;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.custom-notification.error {
  background: linear-gradient(135deg, #ff3860, rgb(255, 5, 55.2512562814));
}
.custom-notification.success {
  background: linear-gradient(135deg, #48c774, rgb(51.5481171548, 168.4518828452, 92.050209205));
}
.custom-notification.warning {
  background: linear-gradient(135deg, #ffdd57, rgb(255, 210.6785714286, 36));
  color: #333;
}
.custom-notification.info {
  background: linear-gradient(135deg, #3298dc, rgb(31.9375, 125.0125, 187.0625));
}
.custom-notification .notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.custom-notification .notification-icon {
  font-size: 1.2rem;
}
.custom-notification .notification-text {
  flex: 1;
  line-height: 1.4;
}
.custom-notification .close-notif {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  transition: background 0.3s ease;
}
.custom-notification .close-notif:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1200px) {
  .container {
    width: 35%;
    left: 10%;
  }
  .OSTI_img {
    width: 50%;
    right: 3%;
  }
}
@media (max-width: 992px) {
  .container {
    width: 45%;
    left: 8%;
    top: 20%;
    height: 60%;
  }
  .OSTI_img {
    width: 45%;
    background-size: 60% auto;
  }
}
@media (max-width: 768px) {
  .container {
    position: relative;
    width: 90%;
    height: auto;
    left: 5%;
    top: 10%;
    margin: 0 auto;
    padding: 30px 0;
  }
  .OSTI_img {
    position: relative;
    width: 100%;
    height: 200px;
    right: 0;
    top: 0;
    margin-top: 20px;
    background-size: 40% auto;
  }
  .bg-wrapper {
    height: 200px;
  }
  .custom-notification {
    left: 20px;
    right: 20px;
    max-width: none;
    animation: slideInUp 0.3s ease;
  }
  @keyframes slideInUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}
@media (max-width: 576px) {
  .container {
    width: 95%;
    left: 2.5%;
  }
  .container h1 {
    font-size: 1.5rem;
  }
  .container .form-box {
    width: 90%;
  }
  .container .form-box .btn_login {
    width: 100%;
    left: 0;
  }
  .OSTI_img {
    background-size: 50% auto;
    height: 150px;
  }
}
@media print {
  .bg-wrapper,
  .OSTI_img,
  .btn_login,
  .eye-toggle {
    display: none !important;
  }
  .container {
    position: static;
    width: 100%;
    height: auto;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
.btn_login:focus-visible {
  outline: 3px solid #ff7f00;
  outline-offset: 2px;
}

input:focus-visible {
  outline: 3px solid #ff7f00;
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  .container h1 {
    color: #ff4500;
  }
  .error-input {
    border-color: #ff0000 !important;
  }
  .btn_login.success {
    background-color: #00aa00;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn_login::after,
  .shake,
  .pulse {
    animation: none !important;
    transition: none !important;
  }
}/*# sourceMappingURL=login.css.map */