* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body,
html {
  height: 100%;
  background-color: white;
  margin: 0;
  padding: 0;
}

.login-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 420px;
  padding: 0 20px;
}

.login-box {
  position: relative;
  background: var(--proect-gradient);
  padding: 50px 40px 40px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  width: 100%;
  color: white;
  text-align: center;
}

.logo {
  width: 80px;
  height: 70px;
  margin: -20px auto 10px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo img {
  width: 60px;
  height: 35px;
}

.login-box h2 {
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.05em;
}

.input-group {
  position: relative;
  margin-bottom: 22px;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.9);
}

.input-group input {
  width: 100%;
  padding: 10px 15px;
  border-radius: 10px !important;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.25);
  color: white;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input-group input:focus {
  background-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Стили для контейнера пароля с глазом */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
  width: 100%;
  padding: 10px 44px 10px 15px;
  border: none;
  border-radius: 10px !important;
  background-color: rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.password-input-wrapper input:focus {
  background-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.password-toggle:hover,
.password-toggle:focus {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  outline: none;
}

.password-toggle svg {
  font-size: 16px;
  line-height: 1;
}

.input-icon {
  position: absolute;
  left: 15px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.btn-container {
  margin-top: 30px;
}

.btn-login {
  width: 100%;
  padding: 14px 0;
  font-weight: 700;
  font-size: 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background-color: white;
  color: #4da4cb;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-login:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.error-message {
  margin-top: 15px;
  color: #ffdddd;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.form-check-input {
  width: 1.25em;
  height: 1.25em;
  border-radius: 0.25rem;
  border: 1px solid #ced4da;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  appearance: none;
  position: relative;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.form-check-input:checked {
  background-color: #574ca1;
  border-color: #ffffff;
}

.form-check-input:checked::before {
  content: "";
  position: absolute;
  left: 0.35em;
  top: 0.15em;
  width: 0.3em;
  height: 0.6em;
  border: solid white;
  border-width: 0 0.2em 0.2em 0;
  transform: rotate(45deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-check-label {
  font-size: 0.9rem;
  color: #ffffff;
}

.container_pass_reset {
  position: relative;
  padding-bottom: 1rem;
}

.forgot-password-link {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
}

.forgot-password-link:hover {
  text-decoration: underline;
  color: #cccccc;
}

/* Основной контейнер тоста */
.toast-container {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 350px;
  z-index: 1090;
  pointer-events: none;
}

/* Позиционирование внизу справа */
.position-fixed.bottom-0.end-0.p-3 {
  position: fixed !important;
  bottom: 0;
  right: 0;
  padding: 0.5rem !important;
}

.toast {
  width: 350px;
  max-width: 100%;
  font-size: 0.875rem;
  pointer-events: auto;
  background-color: rgba(255, 255, 255, 0.85);
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  opacity: 0;
  animation: toast-fade-in 0.3s ease forwards;
}

.toast.showing {
  opacity: 1;
}

.toast:not(.show) {
  display: block;
  /* Bootstrap использует block, а не none для анимации */
  opacity: 0;
}

.toast.show {
  opacity: 1;
}

.toast-header {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: #6c757d;
  background-color: rgba(255, 255, 255, 0.85);
  background-clip: padding-box;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-top-left-radius: calc(0.375rem - 1px);
  border-top-right-radius: calc(0.375rem - 1px);
}

.toast-header .btn-close {
  margin-right: -0.375rem;
  margin-left: auto;
}

.toast-body {
  padding: 0.75rem;
  word-wrap: break-word;
}

/* Стили для иконки (если она будет использоваться) */
.bd-placeholder-img {
  font-size: 0.75rem;
  text-anchor: middle;
  user-select: none;
}

.rounded {
  border-radius: 0.25rem !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-auto {
  margin-right: auto !important;
}

/* Анимация появления */
@keyframes toast-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}