.login-bg-img {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  pointer-events: none;
}

.login-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  background: #131F2C;
  pointer-events: none;
}

.login-container {
  background: rgba(34, 70, 111, 0.5);
  border-radius: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding-top: 7rem;
  padding-right: 3rem;
  padding-bottom: 5.5rem;
  padding-left: 3rem;
  max-width: 520px;
  min-height: 620px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-logo {
  margin-bottom: 4rem;
  width: 100%;
  display: flex;
  justify-content: center;
  height: 8rem;
  max-width: 100%;
  object-fit: contain;
}

.login-form {
  width: 100%;
}

.login-field {
  width: 100%;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.login-floating-label {
  position: absolute;
  left: 45px;
  top: 12px;
  color: #3b82f6;
  font-size: 1.25rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0.85;
  z-index: 2;
}

.login-input {
  background: #101828;
  color: #fff;
  width: 90%;
  border: 2px solid transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding-top: 2.2rem;
  padding-bottom: 1.5rem;
  padding-left: 2rem;
  padding-right: 1.5rem;
  outline: none;
  border-radius: 9999px;
  font-size: 1.7rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  transition: background 0.2s, color 0.2s, border 0.2s;
  box-sizing: border-box;
}

.login-input::placeholder {
  color: #fff !important;
  opacity: 1;
}

.login-input:focus {
  background: #fff;
  color: #000;
  border: 2px solid #226CF6;
}

.login-input:focus::placeholder {
  color: #9ca3af !important;
  opacity: 1;
}

.login-google {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ddd;
  font-weight: 600;
  font-size: 1.7rem;
  text-align: center;
  padding: 1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: 9999px;
  width: 90%;
  margin-top: 1.8rem;
  margin-bottom: 2.3rem;
  margin-left: auto;
  margin-right: auto;
  color: #444;
  text-decoration: none !important;
  transition: background 0.1s;
  gap: 0.75rem;
}

.login-google:hover {
  background: #dfdfdf;
}

.login-btn {
  background: #3b82f6;
  color: #fff;
  font-size: 1.7rem;
  border-radius: 9999px;
  padding: 1.5rem 2.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 90%;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  border: none;
  transition: background 0.2s;
  display: block;
}

.login-btn:hover {
  background: #2563eb;
  color: #fff;
}

.login-forgot {
  width: 90%;
  text-align: center;
  margin-top: 2rem;
  font-weight: 800;
  font-size: 1.7rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-left: auto;
  margin-right: auto;

  a {
    color: #fff;
    text-decoration: none;
  }
}

.login-message {
  all: unset;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
  border-radius: 0.7rem;
  padding: 0.7rem 1.2rem 0.7rem 2rem;
  box-shadow: 0 2px 12px 0 rgba(239, 68, 68, 0.10);
  text-align: center;
  font-weight: 700;
  border: none;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  position: relative;
}

.login-message-danger {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.login-message-close {
  all: unset;
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: #fff;
  opacity: 0.7;
  cursor: pointer;
  font-weight: 400;
  line-height: 1;
  transition: opacity 0.2s;
}

.login-message-close:hover {
  opacity: 1;
}

.login-flash-container {
  width: 100%;
}

.login-flash-outer {
  margin: 1.2rem 0 2.5rem 0;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
}

.login-flash-inner {
  border-radius: 0.75rem;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
}

.login-flash-bg-danger {
  background: #fef2f2;
}

.login-flash-bg-success {
  background: #f0fdf4;
}

.login-flash-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-flash-flex-items {
  display: flex;
  align-items: center;
}

.login-flash-icon {
  margin-top: 7px;
  flex-shrink: 0;
}

.login-flash-svg {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-block;
}

.login-flash-message {
  margin-left: 0.75rem;
}

.login-flash-text {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  white-space: pre-wrap;
}

.login-flash-text-danger {
  color: #b91c1c;
}

.login-flash-text-success {
  color: #166534;
}

.login-flash-close {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-left: 1.2rem;
}

.login-flash-close .login-flash-svg {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.login-flash-close .login-flash-svg:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .login-container {
    background: none !important;
    box-shadow: none !important;
    padding-left: 0.5em !important;
    padding-right: 0.5em !important;
  }

  .login-bg-img {
    display: none !important;
  }

  .login-bg-overlay {
    background: #172F4A !important;
  }

  .login-input {
    background: #22466F;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .login-btn,
  .login-google {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .login-floating-label {
    left: 22px !important;
  }
}
