@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

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

.site-logo { display:block; text-align:center; margin-bottom:24px; }
.site-logo img { width:120px; filter:invert(1); opacity:.7; transition:opacity .3s; }
.site-logo:hover img { opacity:1; }

body {
  background: #0a0a0a url('sfondo_login.png') center/cover no-repeat fixed;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: #c0c0c0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.terminal {
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(60px) saturate(1.8);
  -webkit-backdrop-filter: blur(60px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
  position: relative;
}
.terminal.wide { max-width: 700px; }

.terminal.dragging { user-select: none; }

.terminal-bar {
  cursor: grab;
  background: rgba(255,255,255,.04);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title { margin-left: 10px; font-size: 11px; color: #555; letter-spacing: 1px; }

.terminal-content { padding: 24px; min-height: 300px; }

.boot-text p { font-size: 13px; line-height: 1.8; letter-spacing: 1px; }

.dim { color: #444; }
.green-text { color: #28c840; }

.prompt-line { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 6px 0; flex-wrap: wrap; }
.prompt { color: #28c840; white-space: nowrap; }
.cmd { color: #e0e0e0; }

.login-form { margin-top: 10px; }
.terminal-input {
  background: transparent; border: none; border-bottom: 1px solid #333;
  color: #28c840; font-family: 'JetBrains Mono', monospace; font-size: 14px;
  padding: 4px 2px; outline: none; width: 200px; letter-spacing: 3px; caret-color: #28c840;
}
.terminal-input:focus { border-bottom-color: #28c840; }
.terminal-btn {
  display: block; margin-top: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #28c840; font-family: 'JetBrains Mono', monospace; font-size: 12px;
  padding: 8px 24px; cursor: pointer; letter-spacing: 2px; transition: all .2s; border-radius: 12px;
}
.terminal-btn:hover { background: #28c840; color: #000; border-color: #28c840; }
.error-text { color: #ff5f57; font-size: 12px; margin-top: 12px; animation: glitch .3s; }
@keyframes glitch { 0%,100% { opacity:1; } 50% { opacity:.3; transform:translateX(2px); } }

.cursor-block { color: #28c840; font-size: 14px; margin-top: 20px; animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }
.blink-cursor { animation: blink 1s step-end infinite; }

.project-list { display: flex; flex-direction: column; gap: 8px; }
.project-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: #151515; border: 1px solid #222; border-radius: 4px;
  text-decoration: none; color: inherit; transition: all .2s; cursor: pointer;
}
.project-card:hover { border-color: #28c840; background: #1a1a1a; box-shadow: 0 0 15px rgba(0,255,65,.05); }
.project-card:hover .project-name { color: #28c840; }
.project-card:hover .project-arrow { color: #28c840; transform: translateX(3px); }
.project-card.disabled { opacity: .4; pointer-events: none; cursor: default; }
.project-index { color: #444; font-size: 12px; flex-shrink: 0; }
.project-info { flex: 1; min-width: 0; }
.project-name { font-size: 15px; font-weight: 700; color: #e0e0e0; letter-spacing: 2px; transition: color .2s; }
.project-desc { font-size: 11px; color: #555; margin-top: 3px; letter-spacing: .5px; }
.project-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.status { font-size: 9px; letter-spacing: 1.5px; padding: 2px 8px; border-radius: 3px; font-weight: 700; }
.status.active { color: #28c840; background: rgba(40,200,64,.1); border: 1px solid rgba(40,200,64,.2); }
.status.soon { color: #febc2e; background: rgba(254,188,46,.08); border: 1px solid rgba(254,188,46,.15); }
.version { font-size: 10px; color: #444; }
.project-arrow { color: #333; font-size: 18px; transition: all .2s; flex-shrink: 0; }

.footer-bar { margin-top: 24px; padding-top: 12px; border-top: 1px solid #1a1a1a; display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.logout-link { color: #555; text-decoration: none; transition: color .2s; }
.logout-link:hover { color: #ff5f57; }

@media (max-width: 600px) {
  body { padding: 10px; }
  .terminal-content { padding: 16px; }
  .project-card { padding: 12px; gap: 10px; }
  .project-name { font-size: 13px; }
  .project-desc { font-size: 10px; }
  .prompt-line { font-size: 11px; }
  .boot-text p { font-size: 11px; }
}
