:root {
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --text-dark: #2d3748;
  --text-light: #718096;
  --white: #ffffff;
  --error-color: #e53e3e;
  --border-radius: 10px;
  --box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ==========================
   Reset & Fullscreen Fix
   ========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================
   Background Wrapper
   ========================== */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  background: url("/xassets/ximages/xbg.jpg") no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  padding: 10px;
  box-sizing: border-box;
}

/* ==========================
   Login Box - Transparent Glass
   ========================== */
.auth-box {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 35px 30px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* ==========================
   Logo + Title
   ========================== */
.auth-logo {
  margin-bottom: 20px;
}
.auth-logo img {
  max-width: 75px;
  max-height: 75px;
  display: block;
  margin: 0 auto;
}

.auth-box h4 {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 30px;
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ==========================
   Alerts
   ========================== */
.alert-danger, .alert-warning, .alert-success, .alert-info {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  border-left: 4px solid;
  font-size: 0.85rem;
  text-align: left;
  backdrop-filter: blur(10px);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.2);
  color: #fecaca;
  border-left-color: #ef4444;
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border-left-color: #f59e0b;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  border-left-color: #10b981;
}

.alert-info {
  background-color: rgba(139, 92, 246, 0.2);
  color: #ddd6fe;
  border-left-color: #8b5cf6;
}

/* ==========================
   Form Elements
   ========================== */
.form-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
  display: block;
  text-align: left;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.2);
}

/* Remove autofill yellow background */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: white;
  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.15) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* ==========================
   Buttons
   ========================== */
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: #4361ee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-weight: 600;
}
.btn-primary:hover {
  background: #ffffff;
  color: #3a56d4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================
   Responsive Fixes
   ========================== */
@media (max-width: 480px) {
  .auth-box {
    padding: 25px 20px;
    max-width: 95%;
    background: rgba(255, 255, 255, 0.2);
  }
  .auth-box h4 {
    font-size: 1.4rem;
  }
  .form-control {
    font-size: 0.9rem;
    padding: 11px 12px;
  }
  .btn {
    font-size: 0.95rem;
    padding: 11px;
  }
}

/* ==========================
   Additional Utility Classes
   ========================== */
.d-flex {
  display: flex;
}
.justify-content-end {
  justify-content: flex-end;
}
.mb-3 {
  margin-bottom: 1rem;
}
