/* ==================================================
   ITSSOSO — AUTH SYSTEM (PHASE 0.1)
   Clean rebuild — SINGLE SOURCE OF TRUTH
   ================================================== */

/* ------------------------------
   Base container
------------------------------ */

.itssoso-auth {
  max-width: 520px;
  margin: 3rem auto;
  padding: 2.25rem 2rem;

  background: #ffffff;
  border-radius: 10px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.itssoso-auth h1 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 600;
}

.itssoso-auth-intro {
  margin-bottom: 1.75rem;
  color: #4b5563;
  font-size: 0.95rem;
}

/* ------------------------------
   Notices
------------------------------ */

.itssoso-auth-notice {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.itssoso-auth-notice.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.itssoso-auth-notice.success {
  background: #ecfeff;
  color: #155e75;
  border: 1px solid #bae6fd;
}

/* ------------------------------
   Form fields
------------------------------ */

.itssoso-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.auth-field label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #111827;
}

.auth-field input {
  padding: 0.65rem 0.7rem;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

.auth-field input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

/* ------------------------------
   Primary submit button
------------------------------ */

.itssoso-auth-submit {
  margin-top: 0.75rem;
  padding: 0.7rem;
  border-radius: 6px;
  border: none;

  background: #111827;
  color: #ffffff;

  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.itssoso-auth-submit:hover {
  background: #000000;
}

/* ------------------------------
   Links
------------------------------ */

.itssoso-auth-forgot,
.itssoso-auth-alt {
  font-size: 0.85rem;
}

.itssoso-auth-forgot a,
.itssoso-auth-alt a {
  color: #2563eb;
  text-decoration: none;
}

.itssoso-auth-forgot a:hover,
.itssoso-auth-alt a:hover {
  text-decoration: underline;
}

/* ==================================================
   OAUTH — GOOGLE (SINGLE SOURCE)
   ================================================== */

.itssoso-oauth {
  margin-top: 2rem;
  padding-top: 1.5rem;
  position: relative;
}

/* Divider */
.itssoso-oauth::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #e5e7eb;
}

/* Button */
.oauth-btn.google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  width: 100%;
  padding: 0.7rem;

  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;

  color: #111827;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.oauth-btn.google:hover {
  background: #f9fafb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Icon */
.oauth-btn.google img {
  width: 20px;
  height: 20px;
  display: block;
}

/* ==================================================
   Footer spacing (AUTH PAGES ONLY)
   ================================================== */

body.page-login footer,
body.page-register footer,
body.page-forgot-password footer {
  margin-top: 3rem;
}

/* ==================================================
   Mobile safety
   ================================================== */

@media (max-width: 480px) {
  .itssoso-auth {
    margin: 2rem 1rem;
    padding: 1.75rem 1.25rem;
  }
}