/* ── Login page layout ── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* ── Card ── */
.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px 36px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(44, 123, 229, 0.08);
}

/* ── Logo ── */
.login-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.login-card__logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(44, 123, 229, 0.5));
}

/* ── Heading ── */
.login-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e8edf5;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.login-card__sub {
  font-size: 0.85rem;
  color: #5a7499;
  text-align: center;
  margin: 0 0 28px;
}

/* ── Form fields ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #7a96b8;
  margin: 0;
}

/* Override Bootstrap input styles */
.login-form .form-control,
.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: #e8edf5 !important;
  font-size: 0.9rem !important;
  padding: 10px 14px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  width: 100%;
}

.login-form .form-control:focus,
.login-form input:focus {
  border-color: rgba(44, 123, 229, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.12) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  outline: none !important;
}

.login-form .form-control::placeholder {
  color: #3d5470 !important;
}

/* Checkbox (remember me) */
.login-form .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-form .form-check-input {
  width: 16px !important;
  height: 16px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 4px !important;
  accent-color: #2c7be5;
}

.login-form .form-check-label {
  font-size: 0.85rem;
  color: #7a96b8;
}

/* Standalone inputs (non-form pages) */
.login-field__input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: #e8edf5 !important;
  font-size: 0.9rem !important;
  padding: 10px 14px !important;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-field__input:focus {
  border-color: rgba(44, 123, 229, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.12) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  outline: none;
}

/* Error messages */
.login-field__error {
  font-size: 0.78rem;
  color: #e63757;
}

.login-form .invalid-feedback,
.login-form .text-danger {
  font-size: 0.78rem !important;
  color: #e63757 !important;
}

/* ── Submit button ── */
.login-btn {
  width: 100%;
  padding: 11px 0;
  background: linear-gradient(135deg, #2c7be5 0%, #1a5dbf 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin: 6px 0 0;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(44, 123, 229, 0.3);
}

.login-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(44, 123, 229, 0.4);
}

.login-btn:active {
  transform: translateY(0);
  opacity: 1;
}

/* ── Divider ── */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: #3d5470;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

/* ── Social providers ── */
.login-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-social__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #c2d0e2;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin: 0;
}

.login-social__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e8edf5;
}

/* ── Remove Bootstrap form-group margin clutter ── */
.login-form .form-group {
  margin-bottom: 0 !important;
}
