/* Proyectos IMARES - Login */
:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --text-main: #37352f;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg-page: #ffffff;
  --border-light: rgba(55, 53, 47, 0.09);
  --border-medium: #e5e7eb;
  --primary-blue: #2383e2;
  --primary-blue-hover: #1d72c8;
  --success-green: #16a34a;
  --success-green-hover: #15803d;
  --danger-bg: #fef2f2;
  --danger-text: #b91c1c;
  --success-bg: #ecfdf5;
  --success-text: #166534;
  --info-bg: #eff6ff;
  --info-text: #1d4ed8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  min-height: 100vh;
  font-family: var(--font-family);
  color: var(--text-main);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 70%, #f8fafc 70%, #f8fafc 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 20px;
}
.login-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-page);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
}
.login-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.login-icon { font-size: 30px; line-height: 1; padding-top: 3px; }
.login-heading h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.login-subtitle { margin-top: 1px; color: var(--text-muted); font-size: 16px; font-weight: 500; }
.login-description { font-size: 14px; margin-bottom: 22px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; }
.form-group select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  outline: none;
}
.form-group select:focus,
.otp-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(35, 131, 226, 0.15);
}
.notion-btn {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.notion-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.notion-btn-primary { color: #fff; background: var(--primary-blue); }
.notion-btn-primary:hover:not(:disabled) { background: var(--primary-blue-hover); }
.notion-btn-success { color: #fff; background: var(--success-green); }
.notion-btn-success:hover:not(:disabled) { background: var(--success-green-hover); }
.verification-section { margin-top: 18px; }
.divider { height: 1px; background: var(--border-medium); margin: 18px 0; }
.verification-section h2 { font-size: 21px; margin-bottom: 5px; }
.verification-text { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.verification-text strong { color: var(--text-main); }
.otp-group { display: flex; justify-content: center; gap: 8px; margin: 2px 0; }
.otp-input {
  width: 48px;
  height: 54px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  border-radius: 9px;
  background: #fff;
  outline: none;
}
.text-button {
  align-self: center;
  background: none;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
}
.text-button:hover { text-decoration: underline; }
.message-box {
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid transparent;
}
.message-box.info { background: var(--info-bg); color: var(--info-text); border-color: #bfdbfe; }
.message-box.success { background: var(--success-bg); color: var(--success-text); border-color: #bbf7d0; }
.message-box.error { background: var(--danger-bg); color: var(--danger-text); border-color: #fecaca; }
.login-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .login-page { padding: 28px 14px; }
  .login-card { padding: 22px 18px; }
  .login-heading h1 { font-size: 24px; }
  .otp-group { gap: 6px; }
  .otp-input { width: 42px; height: 50px; font-size: 22px; }
}
