/* ==========================================================================
   Login Page Improvements - Inkubera
   Overrides assets/css/style.css and assets/css/form-elements.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BASE / BACKGROUND
   -------------------------------------------------------------------------- */
body {
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f172a;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Overlay gradient on top of backstretch background */
.top-content .inner-bg {
  padding: 60px 0 80px 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(49, 46, 129, 0.88) 50%, rgba(30, 41, 59, 0.92) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.top-content .inner-bg > .container {
  width: 100%;
}

/* --------------------------------------------------------------------------
   2. TITLE / BRANDING
   -------------------------------------------------------------------------- */
.top-content .text h1 {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 4px;
}

.top-content .description p {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   3. FORM CARD
   -------------------------------------------------------------------------- */
.form-box {
  margin-top: 24px;
}

.form-top {
  background: #ffffff;
  border-radius: 12px 12px 0 0;
  padding: 0 28px 18px 28px;
  border-bottom: 1px solid #f1f5f9;
}

.form-top-left {
  padding-top: 28px;
}

.form-top-left h3 {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin-top: 0;
  margin-bottom: 4px;
}

.form-top-left p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 0;
}

.form-top-right {
  padding-top: 10px;
  color: #c7d2fe;
  font-size: 48px;
}

.form-top-right .fa-key {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-bottom {
  background: #f8fafc;
  border-radius: 0 0 12px 12px;
  padding: 20px 28px 32px 28px;
}

/* --------------------------------------------------------------------------
   4. FORM INPUTS
   -------------------------------------------------------------------------- */
.form-bottom .form-control,
.form-bottom input[type="text"],
.form-bottom input[type="password"] {
  height: 46px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #334155;
  padding: 0 16px;
  line-height: 46px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 4px;
}

.form-bottom .form-control:focus,
.form-bottom input[type="text"]:focus,
.form-bottom input[type="password"]:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  outline: none;
  background: #ffffff;
}

.form-bottom .form-control::-webkit-input-placeholder { color: #94a3b8; font-weight: 400; }
.form-bottom .form-control:-ms-input-placeholder { color: #94a3b8; font-weight: 400; }
.form-bottom .form-control::-moz-placeholder { color: #94a3b8; font-weight: 400; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.form-bottom button.btn {
  height: 46px;
  border-radius: 8px;
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 46px;
  padding: 0 20px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.form-bottom button#hacerlogin2 {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.form-bottom button#hacerlogin2:hover {
  opacity: 1;
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
  transform: translateY(-1px);
}

.form-bottom button#hacerlogin2:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.form-bottom button#hacerlogin {
  background: transparent;
  color: #4f46e5;
  border: 1.5px solid #c7d2fe;
  box-shadow: none;
  line-height: 42px;
}

.form-bottom button#hacerlogin:hover {
  opacity: 1;
  background: rgba(79, 70, 229, 0.06);
  border-color: #6366f1;
  color: #4338ca;
}

.form-bottom button#hacerlogin:focus,
.form-bottom button#hacerlogin2:focus {
  opacity: 1;
  outline: none;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. FORGOT PASSWORD LINK
   -------------------------------------------------------------------------- */
.form-bottom a[data-toggle="modal"] {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #6366f1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.form-bottom a[data-toggle="modal"]:hover {
  color: #4338ca;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   7. ERROR / SUCCESS MESSAGES
   -------------------------------------------------------------------------- */
#mensajeError.callout-danger {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
  border-radius: 6px;
  color: #991b1b;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-top: 10px;
}

#mensajeOK.callout-success {
  background-color: #f0fdf4;
  border-left: 4px solid #10b981;
  border-radius: 6px;
  color: #065f46;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   8. MODAL (Password Recovery)
   -------------------------------------------------------------------------- */
.modal-content {
  border-radius: 12px;
  border: none;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.modal-header {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
  padding: 18px 24px;
  border-bottom: none;
}

.modal-header .modal-title {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #ffffff;
}

.modal-header .close {
  color: #ffffff;
  opacity: 0.7;
  text-shadow: none;
}

.modal-header .close:hover {
  opacity: 1;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  background: #f8fafc;
  padding: 14px 24px;
  border-top: 1px solid #e2e8f0;
}

.modal-footer .btn {
  border-radius: 6px;
  font-family: 'Inter', 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 13px;
  padding: 7px 16px;
  height: auto;
  line-height: 1.5;
}

.modal-footer .btn-sm {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}

.modal-footer .btn-sm:hover {
  background: #4338ca;
}

.modal-footer .btn.pull-left {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.modal-footer .btn.pull-left:hover {
  background: #f1f5f9;
}

/* --------------------------------------------------------------------------
   9. ANIMATION
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-box {
  animation: fadeInUp 0.5s ease-out;
}

.top-content .text {
  animation: fadeInUp 0.4s ease-out;
}

/* Input focus animation */
.form-bottom .form-group {
  position: relative;
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .top-content .inner-bg {
    padding: 40px 0 60px 0;
  }

  .top-content .text h1 {
    font-size: 32px;
  }

  .form-top {
    padding: 0 20px 14px 20px;
  }

  .form-bottom {
    padding: 18px 20px 26px 20px;
  }
}
