/* Modern Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

html {
  font-size: 14px;
  height: 100%;
  position: relative;
  min-height: 100%;
  background-color: #111827; /* Darker smooth fallback */
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #111827; /* Soft dark slate */
  background-image: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  background-attachment: fixed; /* Prevents drastic visual breaks on scroll */
  color: white;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Login Page Wrapper */
.login-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 3rem 0;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: white;
}

.glass-card .card-title {
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Premium Inputs */
.modern-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.8rem !important;
    color: white !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
}

.modern-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25) !important;
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.input-group-text.glass-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    color: white;
    border-radius: 0.8rem 0 0 0.8rem !important;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 0.8rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
}

.btn-premium:active {
    transform: translateY(0);
}

/* Utils */
.text-gradient {
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}