/* ==========================================================================
   MacroSpyder - Authentication & Login/Register Stylesheet
   Path: assets/css/pages/login.css
   ========================================================================== */

body { min-height: 100vh; display: flex; flex-direction: column; }

.login-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  z-index: 1;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  text-decoration: none;
}

.login-brand .brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

.login-brand .brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.auth-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.auth-tabs { display: flex; }

.auth-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  letter-spacing: 0.2px;
}

.auth-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.auth-tab:hover:not(.active) { color: var(--text); }

.auth-ssl {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.auth-ssl svg { width: 13px; height: 13px; }

.auth-card-body { padding: 28px 24px 24px; }

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.alert-danger  { background: rgba(255,93,115,0.1); border: 1px solid var(--neg); color: var(--neg); }
.alert-success { background: rgba(43,212,143,0.1); border: 1px solid var(--pos); color: var(--pos); }

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

.field-l {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 7px;
}

.input-wrap { position: relative; display: flex; align-items: center; }

.input-wrap svg {
  position: absolute;
  left: 12px;
  width: 15px; height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  padding: 10px 12px 10px 38px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10,157,98,0.15);
}

.input-wrap input::placeholder { color: var(--muted); opacity: 0.7; }

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 12.5px;
}

.check {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  cursor: pointer;
}

.check input { accent-color: var(--accent); }

.link-q {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}
.link-q:hover { opacity: 0.75; }

.btn-submit {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
  letter-spacing: 0.2px;
}
.btn-submit:hover  { opacity: 0.88; }
.btn-submit:active { transform: scale(0.985); }
.btn-submit svg { width: 16px; height: 16px; }

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-sso {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-sso:hover { border-color: var(--accent); }
.btn-sso svg   { width: 15px; height: 15px; color: var(--accent); }

.auth-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.auth-foot svg { width: 12px; height: 12px; color: var(--pos); }

.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  margin-top: 20px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--text); }
.back-link svg { width: 13px; height: 13px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

