:root {
  --bg: #0f172a;
  --card: #111827;
  --muted: rgba(255, 255, 255, 0.6);
  --text: #e5e7eb;
  --primary: #22d3ee;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --border: #1f2937;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  font-family:monospace, 'Arial Narrow', Arial, sans-serif, 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif, 'Roboto';
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(147, 51, 234, 1), rgba(15, 102, 136, 0.8), rgba(59, 130, 246, 1));
}

.container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
  z-index: 1;
}

.login-container {
   position: fixed;
  top: 50%;
  left: 50%;
    transform: translate(-50%, -50%);
  max-width: 420px;
    width: 90%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
  text-align: center;
  margin-bottom: 10px
}

.login-header .logo {
  width: 80px;
  height: 70px;
  padding:4px;
  object-fit: contain
}

.login-header h1 {
  margin: 1px 0 1px;
  font-size: 26px
}

.login-header p {
  margin-top: -10px;
  color: var(--muted)
}

.login-form .form-group {
  margin-bottom: 16px
}

label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500
}

.input-with-icon {
  position: relative
}

.input-with-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted)
}

.form-control {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  outline: none;
}
input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.toggle-password {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}



.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .02s ease, box-shadow .2s
}

.btn-primary {
  width: 100%;
  color: white;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
background: rgba(3, 56, 77, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.233);
}
.btn-primary:hover{
background: rgba(5, 82, 112, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.2);
}
.btn-primary:active {
  transform: translateY(1px)
}

.btn-loader {
  display: none;
  margin-left: 10px
}

.btn.loading .btn-text {
  opacity: 0.6
}

.btn.loading .btn-loader {
  display: inline-block
}

.form-footer {
  margin-top: 12px;
  text-align: center
}

.form-footer a {
  color: var(--muted);
  text-decoration: none
}

.form-footer a:hover {
  color: #cbd5e1;
  text-decoration: underline
}

.error-toast {
  position: relative;
  display: none;
  color: #fee2e2;
  padding: 10px 12px;
  margin-bottom: 12px;

   background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
     transition: opacity 0.3s ease, visibility 0.3s ease;
}

.error-toast.show {
  display: flex;
  align-items: center;
  justify-content: space-between;
   opacity: 1;
visibility: visible;
}

.toast-content {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #fecaca
}

.toast-close {
  background: transparent;
  border: 0;
  color: #fecaca;
  cursor: pointer
}


.attempts-counter {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--placeholder-color);
  text-align: left;
  transition: all 0.3s ease;
  opacity: 0;
  height: 0;
  overflow: hidden;
  padding: 0;
}

.attempts-counter.show {
  opacity: 1;
  height: auto;
  padding: 5px 0 0 0;
}

.attempts-counter.warning {
  color: var(--danger);
}

.logo{
    
      border-radius: 12px;
      backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: #eedbfa;

}


@media (max-width:600px) {
  .logo-sm {
    width: 32px;
    height:auto;
  }
}

@media (max-width: 480px){
  .login-container {
    padding:30px;
 
  }

  .login-header h1 {
    font-size: 1.8rem;
  }

  .form-control,
  .btn {
    font-size: 0.95rem;
  }
}
@media (max-width: 320px), (max-width: 344px){
   .login-header h1 {
    font-size: 1.5rem;
  }
}