html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #000;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

.auth-wrapper {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.auth-card {
  width: 100%;
  color: white;
  text-align: center;
  max-width: 480px;
  min-height: 320px;
  background: linear-gradient(180deg, #111, #0d0d0d);
  padding: 36px;
  border-radius: 16px;
  border: 1px solid #1f1f1f;
}

.auth-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
}

.auth-sub {
  text-align: center;
  color: #aaa;
  font-size: 15px;
  margin-bottom: 20px;
}

.auth-card label {
  text-align: left;
  font-size: 16px;
  color: #aaa;
  display: block;
  margin-bottom: 10px;
}

/* INPUT */
.auth-card input {
  width: 100%;
  padding: 13px;
  background: #000;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  margin-bottom: 18px;
}

.auth-card input:focus {
  outline: none;
  border-color: #00C853;
  box-shadow: 0 0 0 1px rgba(0, 200, 83, 0.35);
}

.auth-link {
  display: block;
  margin-top: 18px;
  text-align: center;
  color: #aaa;
  font-size: 15px;
  text-decoration: none;
}

.auth-link:hover {
  color: #00C853;
}

/* BUTTON */
.btn-primary {
  width: 100%;
  background: #00C853;
  color: #000;
  padding: 13px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #00a844;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 10px;
}

/* =====================
   FLASH MESSAGES
===================== */

.messages {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    min-width: 260px;
    animation: slideIn 0.35s cubic-bezier(.4,0,.2,1);
}

/* SUCCESS */
.alert.success {
    background: #0f2e1e;
    color: #2ecc71;
    border: 1px solid #1f5c3b;
}

/* ERROR */
.alert.error {
    background: #2e0f0f;
    color: #ff5c5c;
    border: 1px solid #5c1f1f;
}

/* Animation */
@keyframes slideIn {
    from {
        transform: translateX(40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Exit animation */
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(40px);
        opacity: 0;
    }
}

.alert.hide {
    animation: slideOut 0.35s cubic-bezier(.4,0,.2,1) forwards;
}
