/**
 * BioCroos OS — Universal Authentication Modal Component
 * assets/css/components/modal-auth.css
 * Dark Matte Studio (Artoo) Theme Edition
 */

.auth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  padding: 16px;
  box-sizing: border-box;
}

.auth-card {
  background: #182229;
  width: 90%;
  max-width: 440px;
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: authFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
  color: #ffffff;
  text-align: center;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  font-size: 18px;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, background-color 0.2s;
}

.auth-close-btn:hover {
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.15);
}

.auth-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.auth-sub {
  font-size: 13px;
  color: var(--text-muted, #8b9ea9);
  margin: 0 0 18px 0;
  line-height: 1.4;
}

.text-paciente { color: var(--accent-mint, #34d399); }

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-oauth-dark {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #23313a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-oauth-dark:hover {
  background: #2d3c47;
  border-color: rgba(255, 255, 255, 0.2);
}

.auth-divider {
  position: relative;
  margin: 16px 0;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  position: relative;
  background: #182229;
  padding: 0 10px;
  font-size: 11px;
  color: var(--text-dim, #5c6f7b);
}

.auth-tabs {
  display: flex;
  background: #23313a;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
  gap: 4px;
}

.tab-pill {
  flex: 1;
  background: transparent;
  border: none;
  padding: 9px 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #8b9ea9);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-pill.active {
  background: #10b981;
  color: #ffffff;
}

.auth-fields-form {
  text-align: left;
}

.field-group {
  margin-bottom: 12px;
}

.field-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #8b9ea9);
  margin-bottom: 5px;
}

.input-text {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #131c22;
  color: #ffffff;
  border-radius: 10px;
  font-size: 13px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.input-text:focus {
  border-color: var(--accent-mint, #34d399);
}

.btn-submit-main {
  width: 100%;
  padding: 13px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.btn-submit-main:hover {
  background: #059669;
}

.auth-msg-box {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 10px;
}

.auth-card-footer {
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-dim, #5c6f7b);
}
