/* =============================================
   BrankasEmas - Auth Pages CSS
   Dark & Gold Theme
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C76A;
  --gold-dark:   #8B6914;
  --bg:          #0E0E0E;
  --bg-card:     #161616;
  --bg-input:    #1E1E1E;
  --border:      #2A2A2A;
  --border-gold: rgba(201,168,76,0.35);
  --text:        #E8E6E0;
  --text-muted:  #888;
  --red:         #E05252;
  --green:       #4CAF7A;
  --yellow:      #E8C76A;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Layout ---- */
.auth-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 24px 16px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
}

/* ---- Logo & header ---- */
.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo img {
  height: 36px;
  width: auto;
}

.admin-badge {
  display: inline-block;
  background: var(--gold-dark);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
}

.auth-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

/* ---- Alert ---- */
.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  border-width: 1px;
  border-style: solid;
}

.alert-error {
  background: rgba(224,82,82,0.1);
  border-color: rgba(224,82,82,0.3);
  color: #F08080;
}

.alert-success {
  background: rgba(76,175,122,0.1);
  border-color: rgba(76,175,122,0.3);
  color: #80C89A;
}

.alert-warning {
  background: rgba(232,199,106,0.1);
  border-color: rgba(232,199,106,0.3);
  color: var(--yellow);
}

/* ---- Form ---- */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.form-group input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--gold);
}

.form-group input::placeholder {
  color: #444;
}

/* ---- Button ---- */
.btn-primary {
  width: 100%;
  background: var(--gold);
  color: #0E0E0E;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--gold-light);
}

/* ---- Footer link ---- */
.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
}

.auth-footer a {
  color: var(--gold);
  text-decoration: none;
}

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

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
  }
}
