/* ============================================================
   APEX Login Page
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 20px;
}

#formContent {
  border-radius: 16px;
  background: #ffffff;
  width: 90%;
  max-width: 420px;
  position: relative;
  padding: 0;
  box-shadow:
    0 20px 60px rgba(0,0,0,.3),
    0 0 0 1px rgba(255,255,255,.05);
  text-align: center;
  overflow: hidden;
}

#formFooter {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 20px;
  text-align: center;
  border-radius: 0 0 16px 16px;
}

/* Logo area */
.fadeIn.first {
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  padding: 30px 30px 30px 30px;
  margin-bottom: 0;
  opacity: 1;
  animation: none;
}

#loginlogo {
  max-width: 250px;
  height: auto;
}
/* Form Inputs */
input[type=text],
input[type=password] {
  background-color: #f8fafc;
  border: 2px solid #e2e8f0;
  color: #1e293b;
  padding: 14px 20px;
  text-align: left;
  text-decoration: none;
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin: 8px auto;
  width: calc(100% - 48px);
  border-radius: 10px;
  transition: all .2s ease;
  outline: none;
}

input[type=text]:focus,
input[type=password]:focus {
  background-color: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}

input[type=text]::placeholder,
input[type=password]::placeholder {
  color: #94a3b8;
}

/* Submit Button */
input[type=submit] {
  background: #2563eb;
  border: none;
  color: white;
  padding: 14px 40px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  text-transform: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: 10px;
  margin: 20px 24px 32px;
  width: calc(100% - 48px);
  cursor: pointer;
  transition: all .2s ease;
}

input[type=submit]:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}

input[type=submit]:active {
  transform: scale(0.98);
}

/* Alerts */
.alert {
  font-size: 13px;
  border-radius: 8px;
  border: none;
  margin: 8px 24px;
  padding: 10px 14px;
  text-align: left;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
}

/* Animations - simplified */
.fadeInDown {
  animation: fadeInDown .6s ease both;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.fadeIn { opacity: 1; animation: none; }
.fadeIn.second { animation: fadeUp .4s ease .15s both; }
.fadeIn.third { animation: fadeUp .4s ease .25s both; }
.fadeIn.fourth { animation: fadeUp .4s ease .35s both; }

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* Reset buttons (kept for compatibility) */
input[type=button], input[type=reset] {
  background-color: #2563eb;
  border: none;
  color: white;
  padding: 14px 40px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  border-radius: 10px;
  margin: 5px 20px 40px 20px;
  cursor: pointer;
  transition: all .2s ease;
}

input[type=button]:hover, input[type=reset]:hover {
  background-color: #1d4ed8;
}

/* Form control compat */
select.form-control:not([size]):not([multiple]) {
  height: calc(2.25rem + 10px) !important;
}

*:focus {
  outline: none;
}

/* Underline hover effect */
.underlineHover:after {
  display: block;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  background-color: #2563eb;
  content: "";
  transition: width 0.2s;
}

.underlineHover:hover { color: #1e293b; }
.underlineHover:hover:after { width: 100%; }

#icon { width: 60%; }
