/* =====================================
   AUTH PAGES — Unified Styles
   ===================================== */

/* === Global === */
body {
  font-family: Georgia, sans-serif;
  background: black url('/images/1.jpg') center center fixed no-repeat;
  background-size: cover;
  margin: 0;
  padding: 40px;
  color: white;
  -webkit-text-size-adjust: 100%;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 30px;
  border: 3px double white;
  border-radius: 13px;
  background: black url('/images/f8.jpg') repeat;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
}

h2 {
  text-align: center;
  margin-top: 10px;
}
h2 small {
  display: block;
  font-size: 0.7em;   /* key line */
  margin-top: 5px;
  color: red;
  }

/* === Form Elements === */
label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

input[type=text],
input[type=email],
input[type=password] {
  width: 100%;
  padding: 10px;
  margin: 8px 0 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  background: #1a73e8;
  color: #fff;
  transition: background 0.2s ease-in-out;
}

button:hover {
  background: #1669c1;
}

/* === Feedback === */
.error   { color: red;   text-align: center; }
.success { color: white; text-align: center; }
.info    { color: red; text-align: center; }

/* === Footer === */
.footer {
  text-align: center;
  margin-top: 20px;
}

.footer a {
  color: #1a73e8;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* === Profile Page === */
.profile img.avatar {
  display: block;
  margin: 10px auto;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  background: #ddd;
}

.profile .logout {
  display: block;
  margin-top: 30px;
  text-align: center;
  padding: 10px;
  color: #fff;
  background: #d9534f;
  border-radius: 6px;
  text-decoration: none;
}

.profile .logout:hover {
  background: #c9302c;
}

.profile .timeout {
  text-align: center;
  margin-bottom: 10px;
  color: #d9534f;
}

/* =====================================
   Responsive Adjustments
   ===================================== */

@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  .container {
    max-width: 95%;
    padding: 20px;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px;
  }

  .container {
    padding: 18px;
    border-radius: 10px;
  }

  h2 {
    font-size: 1.35rem;
  }

  button {
    padding: 11px;
  }

  input[type=text],
  input[type=email],
  input[type=password] {
    padding: 9px;
  }

  .footer {
    font-size: 0.9rem;
  }
}


/* Inner + outer glow (subtle, dual-color pulse) */
@keyframes dual-glow {
  0% {
    /* Outer glow + Inner glow */
    box-shadow:
      0 0 6px 2px rgba(255,140,0,0.30),        /* subtle orange outer */
      inset 0 0 4px 1px rgba(255,140,0,0.25);  /* subtle orange inner */
  }

  50% {
    box-shadow:
      0 0 12px 4px rgba(207,73,84,0.45),       /* theme red outer */
      inset 0 0 10px 3px rgba(207,73,84,0.40); /* theme red inner */
  }

  100% {
    box-shadow:
      0 0 6px 2px rgba(255,140,0,0.30),
      inset 0 0 4px 1px rgba(255,140,0,0.25);
  }
}


/* Fade-in animation for container */
@keyframes container-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px); /* tiny lift for smoothness */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  animation:
    container-fade-in 0.5s ease-out forwards,   /* runs once */
    dual-glow 4.2s ease-in-out infinite;        /* loops forever */
}

.rainbow {
  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    green,
    cyan,
    blue,
    violet,
    red);
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation:rainbow 10s ease-in-out infinite}

/* rainbow color animation */
@keyframes rainbow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 150%; }
}

