@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Nunito:wght@400;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-image: url("../images/login_bg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Plus Jakarta Sans', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-page-wrapper {
  min-height: 100vh;
  width: 100%;
}

/* Glassmorphism Auth Card */
.auth-card {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.auth-card-body {
  padding: 2.25rem 2rem;
}

/* Avatar Badge */
.auth-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(37, 99, 235, 0.35));
  border: 2px solid rgba(56, 189, 248, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.35);
  color: #38bdf8;
  font-size: 26px;
  transition: transform 0.3s ease;
}

.auth-card:hover .auth-avatar {
  transform: scale(1.05);
}

/* Headings */
.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.auth-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  display: block;
}

/* Modern Input Groups */
.modern-input-group {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  transition: all 0.25s ease;
  overflow: hidden;
}

.modern-input-group:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
  background: rgba(255, 255, 255, 0.11);
}

.modern-input-group .input-group-prepend {
  min-width: 44px;
}

.modern-input-group .input-group-text {
  background: transparent !important;
  border: none !important;
  color: #38bdf8 !important;
  padding-left: 1rem;
  padding-right: 0.5rem;
  font-size: 1rem;
}

.modern-input {
  height: 48px;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: none !important;
  padding-left: 0.5rem;
}

.modern-input::placeholder {
  color: #64748b !important;
  font-size: 0.9rem;
}

.modern-input:focus {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #ffffff !important;
}

/* Modern Primary Button */
.btn-modern-primary {
  height: 48px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.45);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(2, 132, 199, 0.6);
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  color: #ffffff !important;
}

.btn-modern-primary:active {
  transform: translateY(0);
}

/* Auth Link */
.auth-link {
  color: #38bdf8 !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.auth-link:hover {
  color: #7dd3fc !important;
  transform: translateY(-1px);
}

/* Legacy Card & Form Backwards Compatibility */
.card {
  background: rgba(15, 23, 42, 0.78) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  border-radius: 20px;
}

.logo .logo-caption {
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.logo .profile {
  margin-left: 50%;
  border-radius: 50%;
  transform: translate(-50%);
  border: 2px solid #38bdf8;
}

.logo .tweak {
  color: #38bdf8;
  font-weight: bold;
}

.login-form .input-group-text {
  background: #0284c7;
  border: 0;
  color: #ffffff;
}

.login-form input, .login-form textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  border-radius: 8px;
}

.login-form input:focus, .login-form textarea:focus {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: #0284c7;
}

.login-form button.btn-custom {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: 0;
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  body {
    background-position: left center;
  }
  .auth-card-body {
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .auth-card {
    border-radius: 16px;
  }
  .auth-card-body {
    padding: 1.5rem 1.25rem;
  }
}
