:root {
  --tesla-blue: #4664DC;
  
  --bg-main: #18181b;           
  --text-primary: #f4f4f7;      
  --text-muted: #71717a;        
  --border-color: #454545;     
}

/* =========================================================
   GLOBAL / RESET
   ========================================================= */
* {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE / Edge */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* =========================================================
   BODY / LAYOUT
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);

  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.header {
    margin-bottom: 3rem; /* mb-12 */
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.container {
    width: 100%;
    max-width: 320px; /* max-w-xs */
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}

.btn-cmd {
  color: var(--text-primary);
  background-color: #282829;
  border-color: var(--border-color);
}

.btn-primary {
  background-color: var(--tesla-blue) !important;
  color:  var(--text-primary) !important;
  border-radius: 9999px;
  padding: 1rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.15em;
  transition: all 0.2s ease;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.btn-primary:hover {
  color: #fff !important;
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-secondary {
    width: 100%;
    background-color: #52525b; /* bg-zinc-600 */
    color: #d4d4d8;
    padding: 0.75rem 0;
    border-radius: 9999px;
    border: none;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #3f3f46;
    color: #f4f4f5;
}

.btn-secondary:active {
    transform: scale(0.95);
}

.input-uid {
    width: 100%;
    background-color: #27272a; /* bg-zinc-800 */
    border: 1px solid #52525b; /* border-zinc-600 */
    padding: 1rem;
    border-radius: 0.75rem; /* rounded-xl */
    text-align: center;
    color: #e4e4e7;
    font-family: monospace;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    outline: none;
}

.input-uid::placeholder {
    color: #d4d4d8;
    font-size: 10px;
    letter-spacing: normal;
}

.input-uid:focus {
    border-color: #71717a;
    box-shadow: 0 0 0 2px rgba(161, 161, 170, 0.2);
}

#initial-loader {
  align-items: center;    
  justify-content: center; 
  background-color: var(--bg-main);
}

#footer {
  color: var(--text-muted);
  letter-spacing: 0.4em;
  font-size: 8px;
  position: absolute;
  bottom: 2.5rem;
  left: 50%;         
  transform: translateX(-50%); 
  width: auto;
  text-align: center;
  border: none;
}

.hidden {
  display: none !important;
}