/*---------------------------
Preloader Area CSS Code
----------------------------*/
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #fff;
}

.preloader .loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font: 14px Arial, sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Raleway', Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(27, 166, 164, 0.25), transparent 35%),
    radial-gradient(circle at bottom right, rgba(243, 69, 96, 0.2), transparent 25%),
    linear-gradient(135deg, #0f172a 0%, #13263c 45%, #1a3a54 100%);
  color: #f5f7fb;
}

.login-container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.login-popup {
  position: relative;
  width: min(440px, 100%);
  padding: 36px 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(1, 26, 51, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.animate-popup {
  animation: popupAppear 0.7s ease-out;
}

@keyframes popupAppear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-header {
  margin-bottom: 28px;
}

.login-logo {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.login-logo img {
  width: 42px;
  height: auto;
}

.login-header h3 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.login-header p {
  margin-top: 10px;
  color: rgba(245, 247, 251, 0.78);
}

.login-form .form-group {
  margin-bottom: 18px;
}

.login-form label {
  display: block;
  margin-bottom: 10px;
  color: #e2e8f0;
  font-weight: 600;
}

.input-with-icon .input-group-text {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  min-width: 48px;
  justify-content: center;
  border-radius: 16px 0 0 16px;
}

.input-with-icon .input-group .form-control {
  border-left: 0;
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.input-with-icon .input-group .form-control:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: none;
}

.input-with-icon .input-group .form-control::placeholder {
  color: rgba(248, 250, 252, 0.65);
}

.remember-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.remember-label input {
  width: 16px;
  height: 16px;
  accent-color: #38bdf8;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.btn-back,
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  border: none;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-back {
  flex: 1 1 120px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-login {
  flex: 1 1 180px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  box-shadow: 0 16px 30px rgba(16, 185, 129, 0.2);
}

.btn-login:hover {
  background: linear-gradient(135deg, #0f766e, #0891b2);
  transform: translateY(-1px);
}

.login-note {
  color: rgba(226, 232, 240, 0.9);
}

.login-note a {
  color: #7dd3fc;
  text-decoration: none;
}

.login-note a:hover {
  text-decoration: underline;
}

.register-popup {
  width: min(760px, 100%);
}

.register-form .form-group {
  margin-bottom: 0;
}

.file-upload {
  padding: 0.8rem 1rem;
  cursor: pointer;
}

.file-upload::file-selector-button {
  border: none;
  border-radius: 12px;
  padding: 0.55rem 0.95rem;
  margin-right: 0.85rem;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 576px) {
  .login-popup {
    padding: 28px 20px;
  }

  .form-actions {
    flex-direction: column;
  }
}
