/* ==========================================
   LOGIN PAGE STYLES
   ========================================== */
:root {
  --shelco-red:   #b30000;
  --shelco-black: #1a1a1a;

  --bg-body:      #1a1a1a;
  --bg-card:      #ffffff;
  --text-heading: #1a1a1a;
  --text-label:   #666666;
  --border-input: #e0e0e0;
  --bg-input:     #ffffff;
  --text-input:   #1a1a1a;
}

[data-theme="dark"] {
  --bg-card:      #1e1e22;
  --text-heading: #e8e8ea;
  --text-label:   #9090a0;
  --border-input: #3a3a42;
  --bg-input:     #252528;
  --text-input:   #e8e8ea;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-card:      #1e1e22;
    --text-heading: #e8e8ea;
    --text-label:   #9090a0;
    --border-input: #3a3a42;
    --bg-input:     #252528;
    --text-input:   #e8e8ea;
  }
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: var(--shelco-black);
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                    url('https://www.transparenttextures.com/patterns/asphalt-dark.png');
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 16px;
  box-sizing: border-box;
}

.login-container {
  background: var(--bg-card);
  padding: 36px 32px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 420px;
  text-align: center;
  border-top: 8px solid var(--shelco-red);
}

.logo-box img {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-bottom: 20px;
}

h2 {
  color: var(--text-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-input);
  padding-bottom: 10px;
}

.input-group { margin-bottom: 18px; text-align: left; }

label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-label);
  margin-bottom: 5px;
  text-transform: uppercase;
}

input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-input);
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  background: var(--bg-input);
  color: var(--text-input);
}
input:focus {
  outline: none;
  border-color: var(--shelco-red);
}
input:-webkit-autofill,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
  -webkit-text-fill-color: var(--text-input) !important;
}

button {
  width: 100%;
  padding: 14px;
  background-color: var(--shelco-black);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: background 0.3s;
  margin-top: 10px;
  touch-action: manipulation;
}
button:hover { background-color: var(--shelco-red); }

.error {
  background: rgba(179,0,0,0.12);
  color: #ff6b6b;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.success {
  background: rgba(46,125,50,0.12);
  color: #6fcf8a;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

/* Light mode overrides for error/success */
:root:not([data-theme="dark"]) .error   { background: #ffdce0; color: #d8000c; }
:root:not([data-theme="dark"]) .success { background: #e6f4ea; color: #276749; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .error   { background: #ffdce0; color: #d8000c; }
  :root:not([data-theme="dark"]) .success { background: #e6f4ea; color: #276749; }
}

@media (max-width: 480px) {
  .login-container { padding: 24px 20px; border-radius: 8px; }
  .logo-box img    { max-width: 200px; margin-bottom: 16px; }
  h2               { font-size: 1rem; margin-bottom: 18px; }
}
