/* ==========================================================
   ROOT VARIABLES
   Centralized color + style palette
========================================================== */
:root {
    /* Brand Colors */
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e67e22;
    --accent-hover: #d35400;

    /* UI Colors */
    --background-color: #f4f6f9;
    --background-alt: #f9fafc;
    --surface-color: #9bb2c9bd;
    --surface-hover: #f1f7ff;
    --border-color: #e0e0e0;

    /* Text */
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --text-inverse: #ffffff;

    /* Utility */
    --info-color: #3498db;
    --info-hover: #2980b9;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;

    /* Effects */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.18);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}
body {
  background: url('../img/50fc.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Optional overlay effect for readability */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  z-index: 0;
}





/* ===== AUTH (LOGIN) FORM ===== */
.auth-container {
  position: relative; /* add this */
  z-index: 1;         /* ensures it's above the overlay */
  background: var(--white);
  padding: 2.5rem;
  margin: auto;
  
  max-width: 400px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  background-color: var(--surface-color);
}

.auth-container h2 {
  color: var(--secondary-color);
  font-size: 1.8rem;
  font-weight: 700;
  
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 0rem;
}

/* Form elements */
.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
}

.auth-container label {
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
}

.auth-container input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.auth-container input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 4px rgba(230, 126, 34, 0.3);
  outline: none;
}

/* Button */
.auth-container .btn {
  background: var(--accent-color);
  color: var(--white);
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.auth-container .btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}







/* ==========================================================
   MOBILE VIEW
========================================================== */
@media (max-width: 548px) {
  body {
    background: url('../img/50fc.jpg') center/cover no-repeat;
    height: 100vh;
  }

  .auth-container {
  max-width: 400px;   /* don’t exceed 400px on large screens */
  padding: 1.8rem;
}

.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
  margin-right: 5%;
}

}



/* ==========================================================
   TABLET VIEW (also covers phones in landscape)
========================================================== */
@media (min-width: 549px) and (max-width: 1024px) {
  body {
    background: url('../img/50fc.jpg') center/cover no-repeat;
    height: 100%;

  }

  .auth-container {
    max-width: 500px;         /* slightly wider than phone */
    padding: 2rem;
    border-radius: 16px;
  }

  .auth-container h2 {
    font-size: 1.6rem;
  }

  .auth-container input {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }

  .auth-container .btn {
    padding: 1rem;
    font-size: 1rem;
  }
}
