/* ============================================================
   MTG Manager – Planeswalker HQ
   Auth Pages Stylesheet (standalone, no sidebar)
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.auth-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 24px;
}

.auth-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-hover);
}

/* ----- Logo Section ---------------------------------------- */
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo-icon {
  font-size: 48px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.auth-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--heading);
  margin: 0 0 4px 0;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text);
  opacity: 0.65;
  margin: 0;
}

/* ----- Error Message --------------------------------------- */
.auth-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--highlight);
  border-radius: var(--radius);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.auth-error i {
  font-size: 16px;
  flex-shrink: 0;
}

/* ----- Form ------------------------------------------------ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.auth-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 100, 79, 0.1);
}

.auth-input::placeholder {
  color: var(--text);
  opacity: 0.4;
}

.auth-btn {
  width: 100%;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  margin-top: 8px;
}

.auth-btn:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-hover);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ----- Forgot Password ------------------------------------- */
.auth-forgot {
  text-align: right;
  margin-top: -4px;
  font-size: 13px;
}

.auth-reset-info {
  font-size: 14px;
  color: var(--text);
  opacity: 0.75;
  margin: 0 0 4px 0;
  line-height: 1.5;
}

/* ----- Success Message ------------------------------------- */
.auth-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #e8f5e9;
  border-radius: var(--radius);
  color: #2e7d32;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.auth-success i {
  font-size: 16px;
  flex-shrink: 0;
}

/* ----- Footer ---------------------------------------------- */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}

.auth-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.15s ease;
}

.auth-link:hover {
  color: var(--accent-hover);
}

/* ----- Responsive ------------------------------------------ */
@media (max-width: 480px) {
  .auth-container {
    padding: 16px;
  }

  .auth-card {
    padding: 28px 20px;
  }
}
