/**
 * Login Page Styles
 *
 * Estilos para la página de login. Siguiendo principios enterprise:
 * - Mobile-first responsive design
 * - WCAG 2.2 AA compliant
 * - Progressive enhancement (funciona sin JS)
 * - CSS variables del Design System
 */

/* ========================================
   LAYOUT BASE
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  background: #09080b;
  color: #e4e6e7;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: 170px;
}

/* ========================================
   LOGIN CONTAINER
   ======================================== */

.login-container {
  width: 100%;
  max-width: 320px;
}

/* ========================================
   LOGO
   ======================================== */

.logo {
  margin-bottom: 10px;
}

.logo img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  margin-left: -20px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.title {
  font-size: 24px;
  font-weight: 600;
  color: #e4e6e7;
  margin-bottom: 8px;
  line-height: 1.3;
}

.subtitle {
  font-size: 14px;
  color: #9a9c9d;
  margin-bottom: 40px;
}

.subtitle a {
  color: #339999;
  text-decoration: none;
  margin-left: 4px;
}

.subtitle a:hover {
  text-decoration: underline;
}

.subtitle a:focus {
  outline: 2px solid #339999;
  outline-offset: 2px;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #e4e6e7;
  margin-bottom: 10px;
}

.field-group {
  position: relative;
  margin-bottom: 16px;
}

.field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

.field-input {
  padding-left: 40px;
  height: 40px;
}

.field-input:focus {
  border-color: #339999;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-semi-jade {
  width: 100%;
  margin-top: 8px;
}

.button-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(102, 204, 204, 0.3);
  border-top-color: #6cc;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   FORGOT PASSWORD LINK
   ======================================== */

.forgot-link {
  display: block;
  text-align: left;
  font-size: 13px;
  color: #9a9c9d;
  margin-top: 24px;
}

.forgot-link a {
  color: #9a9c9d;
  text-decoration: none;
}

.forgot-link a:hover {
  color: #339999;
}

.forgot-link a:focus {
  outline: 2px solid #339999;
  outline-offset: 2px;
}

/* ========================================
   RESPONSIVE (MOBILE-FIRST)
   ======================================== */

/* Tablet y superior (768px+) */
@media (min-width: 768px) {
  body {
    padding: 40px;
    padding-bottom: 200px;
  }

  .login-container {
    max-width: 380px;
  }

  .title {
    font-size: 28px;
  }

  .subtitle {
    font-size: 15px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .login-container {
    max-width: 400px;
  }

  .title {
    font-size: 30px;
  }
}
