/*
Theme Name: Emanate Portal v2.1
Author: Developer
Version: 1.0
Text Domain: emanate-portal
*/

/* ===== Reset / base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #1a1a1a;
  background: #fafafa;
  line-height: 1.5;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
}
.site-header nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header nav a {
  text-decoration: none;
  font-weight: 500;
}

/* ===== Footer ===== */
.site-footer {
  padding: 40px 20px;
  background: #111;
  color: #ccc;
  text-align: center;
  margin-top: 60px;
}

/* ===== Login / Register — split screen ===== */
:root {
  --auth-accent: #00bce4;
  --auth-accent-dark: #0e8f9c;
  --auth-line: #c21833;
  --auth-ink: #1a1a1a;
  --auth-border: #d9dde1;
}

.auth-shell {
  display: flex;
  min-height: 100vh;
  background: #fff;
}

.auth-hero {
  position: relative;
  flex: 1 1 50%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 60px;
}
.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 0;
}
.auth-hero-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}
.auth-hero-content h1 {
  color: #fff;
  font-size: 60px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 20px;
  padding-left: 20px;
  border-left: 5px solid var(--auth-accent);
}
.auth-hero-content p {
  color: #eee;
  font-size: 1rem;
  margin: 0;
  padding-left: 25px;
}

.auth-panel {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.auth-form-inner {
  width: 100%;
  max-width: 650px;
}
.auth-form-inner h1 {
  color: var(--auth-accent);
  font-size: 1.9rem;
  margin: 0 0 6px;
}
.auth-form-inner .auth-subtitle {
  color: #777;
  margin: 0 0 32px;
  font-size: 0.95rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-grid .auth-field.full {
  grid-column: 1 / -1;
}

.auth-field {
  margin-bottom: 10px;
}
.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--auth-ink);
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-wrap .auth-icon {
  position: absolute;
  left: 14px;
  color: #999;
  font-size: 1rem;
  pointer-events: none;
}
.auth-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  color: #666;
  cursor: pointer;
  z-index: 2;
}
.auth-password-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.auth-field input,
.auth-field select {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--auth-ink);
}
.auth-password-wrap input {
  padding-right: 42px;
}
.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: var(--auth-accent);
}
.auth-field select {
  padding-left: 14px;
  appearance: auto;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}
.auth-checkbox input {
  margin-top: 3px;
}
.auth-checkbox .auth-check-sub {
  display: block;
  color: #888;
  font-size: 0.8rem;
  margin-top: 2px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.auth-submit {
  width: 100%;
  padding: 14px;
  background: var(--auth-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}
.auth-submit:hover {
  background: var(--auth-accent-dark);
}

.auth-button-group {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.auth-button-secondary {
  background: #fff;
  color: var(--auth-accent);
  border: 1px solid var(--auth-accent);
}
.auth-button-secondary:hover {
  background: #f6f8ff;
}

.auth-switch {
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #777;
}
.auth-switch a {
  color: var(--auth-accent);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: underline;
}

.auth-links {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.auth-links a {
  color: var(--auth-accent);
  text-decoration: none;
}
.auth-links a:hover {
  text-decoration: underline;
}

.auth-error {
  background: #fdecea;
  color: #9c1c13;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.auth-success,
.auth-success-note {
  background: #e7f6ec;
  color: #146c2e;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  border-left: 4px solid #2e9b5c;
  opacity: 1;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}
.auth-success-note.is-hidden {
  opacity: 0;
  visibility: hidden;
  height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.auth-registration-modal {
  width: min(440px, calc(100% - 40px));
  border: 0;
  border-radius: 6px;
  padding: 36px;
  color: var(--auth-ink);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}
.auth-registration-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.auth-registration-modal h2 {
  color: var(--auth-accent-dark);
  font-size: 1.4rem;
  margin: 0 0 16px;
}
.auth-registration-modal p {
  line-height: 1.55;
  margin: 0 0 24px;
}
.auth-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #555;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}
.auth-modal-confirm {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 12px;
  background: var(--auth-accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}
.auth-modal-confirm:hover {
  background: var(--auth-accent-dark);
}

.info {
  background-color: #e7f3fe;
  border-left: 6px solid #1c274c;
  padding: 4px 12px;
  margin-top: 15px;
}

@media (max-width: 900px) {
  .auth-shell {
    flex-direction: column;
  }
  .auth-hero {
    min-height: 320px;
    flex: none;
  }
  .auth-hero-content h1 {
    font-size: 2rem;
  }
  .auth-panel {
    padding: 40px 20px;
  }
  .auth-grid {
    grid-template-columns: 1fr;
  }
}
