/* ORRANET auth pages — login, signup, shared look */

:root {
  --brand-dark: #075e54;
  --brand: #128c7e;
  --brand-bright: #25d366;
  --brand-bright-hover: #1fb856;
  --wallpaper: #e5ddd5;
  --surface: #ffffff;
  --bubble-light: #dcf8c6;
  --text-dark: #111b21;
  --text-muted: #667781;
  --border: #d8dcd6;
  --error: #d1453b;
  --radius-card: 12px;
  --radius-field: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--wallpaper);
  background-image:
    radial-gradient(var(--border) 1px, transparent 1px),
    radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7, 94, 84, 0.18);
}

.auth-card__brand {
  background: var(--brand-dark);
  padding: 28px 32px 24px;
  text-align: center;
}

.auth-card__logo {
  width: 110px;
  height: 40px;
  margin: 0 auto 12px;
  display: block;
}

.auth-card__brand h1 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: 0.3px;
}

.auth-card__brand p {
  color: var(--bubble-light);
  font-size: 13px;
  margin: 0;
}

.auth-card__body {
  padding: 28px 32px 32px;
}

.auth-card__body h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}

.auth-card__body > p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 20px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.field input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-field);
  background: #f7f7f5;
  color: var(--text-dark);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.btn-primary {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--brand-bright);
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--brand-bright-hover);
}

.auth-alert {
  background: #fdeceb;
  color: var(--error);
  border: 1px solid #f4c7c3;
  border-radius: var(--radius-field);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 18px;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

@media (max-width: 420px) {
  .auth-card__brand {
    padding: 24px 20px 20px;
  }

  .auth-card__body {
    padding: 24px 20px 28px;
  }
}

    /* Checkbox alignment fix */
    .field-checkbox {
      margin-bottom: 14px;
    }

    .checkbox-label {
      display: flex;
      flex-direction: row;
      align-items: center;      /* vertically centers checkbox with text */
      justify-content: flex-start;
      gap: 10px;
      font-size: 13px;
      color: var(--text-muted, #667781);
      cursor: pointer;
      width: 100%;
      text-align: left;
      margin: 0;
    }

    .checkbox-label input[type="checkbox"] {
      margin: 0;
      width: 16px;
      height: 16px;
      flex-shrink: 0;           /* prevents checkbox from being squished */
      accent-color: var(--brand-bright, #25d366);
      cursor: pointer;
      position: static;         /* overrides any absolute positioning */
      display: inline-block;
    }

    .checkbox-label span {
      display: inline;
      line-height: 1.4;
      text-align: left;
    }

    .checkbox-label a {
      color: var(--brand, #128c7e);
      font-weight: 600;
      text-decoration: none;
    }

    .checkbox-label a:hover {
      text-decoration: underline;
    }