/* ======================================
   GRINDSTONE RP — USER INTERFACE THEME
   Clean, Neon Red & Black Style
   ====================================== */

:root {
  --bg-dark: #000;
  --bg-panel: #121212;
  --accent: #ff3333;
  --accent-hover: #ff5555;
  --text: #f5f5f5;
  --muted: #aaa;
  --radius: 12px;
  --shadow: 0 0 25px rgba(255, 51, 51, 0.25);
}

/* ================================
   BASE & GLOBAL
   ================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #0e0e0e, var(--bg-dark));
  font-family: "Poppins", sans-serif;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* ================================
   FORM CONTAINER
   ================================ */
.form-container {
  background: var(--bg-panel);
  padding: 45px 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 400px;
  max-width: 90%;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.form-container h2 {
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 24px;
  text-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
}

.form-container p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 15px;
}

/* ================================
   INPUT FIELDS
   ================================ */
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  background: #0c0c0c;
  border: 1px solid #222;
  border-radius: var(--radius);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
}

/* ================================
   BUTTONS
   ================================ */
button,
.btn {
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  padding: 12px 16px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, transform 0.05s ease;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 12px var(--accent-hover);
}

button:active,
.btn:active {
  transform: translateY(1px);
}

.btn.secondary {
  background: #292929;
  color: #ddd;
}

.btn.secondary:hover {
  background: #383838;
}

.btn.small {
  width: auto;
  padding: 8px 14px;
  font-size: 13px;
}

/* ================================
   BADGES
   ================================ */
.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.badge-ok {
  background: #28a745;
  color: #fff;
}

.badge-bad {
  background: #dc3545;
  color: #fff;
}

.badge-warn {
  background: #ffc107;
  color: #000;
}

/* ================================
   ALERTS
   ================================ */
.alert {
  margin-bottom: 15px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.9em;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.alert.error {
  background: rgba(255, 63, 63, 0.12);
  border: 1px solid rgba(255, 63, 63, 0.3);
  color: #ff7777;
}

.alert.success {
  background: rgba(35, 209, 139, 0.12);
  border: 1px solid rgba(35, 209, 139, 0.3);
  color: #23d18b;
}

.alert.warning {
  background: rgba(255, 204, 0, 0.12);
  border: 1px solid rgba(255, 204, 0, 0.3);
  color: #ffcc00;
}

/* ================================
   DASHBOARD LAYOUT (Shared)
   ================================ */
.dashboard-container {
  background: #111;
  border: 1px solid #222;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 50px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.dashboard-container h2 {
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 10px;
}

.dashboard-container .subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 25px;
}

.card {
  background: #151515;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
}

.card p {
  font-size: 14px;
  margin: 8px 0;
  color: #ccc;
}

.card strong {
  color: var(--accent);
}

.nav-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

footer {
  margin-top: 25px;
  font-size: 12px;
  color: #777;
  text-align: center;
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 600px) {
  .form-container {
    padding: 30px 25px;
    width: 90%;
  }

  .dashboard-container {
    padding: 30px 20px;
  }

  .card {
    padding: 15px;
  }

  h2 {
    font-size: 20px;
  }

  button, .btn {
    font-size: 15px;
    padding: 10px 12px;
  }

  input {
    font-size: 14px;
  }
}