/* UGABUGA OS - Boot Screen & Login Panel */

/* === BOOT SCREEN === */
#bootScreen {
  background: #000000;
  align-items: flex-start;
  justify-content: flex-start;
}

.boot-terminal {
  width: 100%; height: 100%;
  padding: clamp(12px,3vw,28px) clamp(16px,4vw,40px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #000;
}

#bootOutput {
  flex: 1;
  font-family: var(--font-retro);
  font-size: clamp(15px,2.2vw,22px);
  color: #00ff41;
  line-height: 1.75;
  text-shadow: 0 0 4px rgba(0,255,65,0.6);
  white-space: pre-wrap;
  overflow: hidden;
}

.boot-line  { display: block; }
.boot-ok    { color: #00ff41; }
.boot-warn  { color: #ffee00; }
.boot-error { color: #ff4444; }

.boot-cursor {
  font-family: var(--font-retro);
  font-size: clamp(15px,2.2vw,22px);
  color: #00ff41;
  animation: blink 1s step-end infinite;
}

.boot-bar-wrap {
  display: inline-block;
  width: clamp(100px,16vw,200px);
  height: 14px;
  background: #111;
  border: 1px solid #333;
  vertical-align: middle;
  margin: 0 6px;
}

.boot-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #000080, #0000cc);
  transition: width 0.2s linear;
}

/* === LOGIN SCREEN === */
#loginScreen {
  background: #008080;
  justify-content: center;
  align-items: center;
}

.login-bg {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #008080;
}

.login-panel {
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  outline: 1px solid #000;
  width: clamp(280px, 90vw, 340px);
  overflow: hidden;
}

.login-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-logo {
  font-family: var(--font-retro);
  font-size: 36px;
  color: #000080;
  text-align: center;
  letter-spacing: 2px;
  margin-top: 16px;
}

.login-version {
  font-family: var(--font-main);
  font-size: 10px;
  color: #404040;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.login-body {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.login-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border-top: 2px solid #808080;
  border-left: 2px solid #808080;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background: #fff;
  flex-shrink: 0;
}
.login-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-username {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: bold;
  color: #000;
  letter-spacing: 1px;
}

.login-divider {
  width: 100%;
  border: none;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
  margin: 4px 0;
}

.login-form { width: 100%; display: flex; flex-direction: column; gap: 6px; }

.login-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.login-field label {
  font-family: var(--font-main);
  font-size: 10px;
  color: #000;
}

.login-form input {
  width: 100%;
  background: #fff;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  font-family: var(--font-main);
  font-size: 12px;
  padding: 4px 6px;
  outline: none;
  color: #000;
}

.login-btn-row {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

#loginBtn {
  min-width: 100px;
}

.login-hint {
  font-family: var(--font-main);
  font-size: 10px;
  color: #404040;
  text-align: center;
}

.screen-flicker { animation: screenFlicker 0.55s ease forwards; }

/* Mobile */
@media (max-width: 480px) {
  .login-panel { width: 95vw; }
  .login-body { padding: 12px 16px 16px; }
}
