/*
 * Ubuntu Web Desktop OS - Estilos Visuales
 * Versión: v1.0.0
 * Fecha: 2026-09-09
 * Estilo: UGREEN UGOS + Windows 11 Acrylic Glassmorphism
 */

:root {
  --bg-desktop: radial-gradient(circle at 80% 20%, #1e1b4b 0%, #0f172a 40%, #020617 100%);
  --surface-window: rgba(30, 41, 59, 0.92);
  --surface-header: rgba(15, 23, 42, 0.95);
  --surface-card: rgba(15, 23, 42, 0.65);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --surface-active: rgba(255, 255, 255, 0.14);
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-focus: #38bdf8;
  --border-accent: #10b981;

  --accent-green: #10b981;
  --accent-green-hover: #34d399;
  --accent-blue: #38bdf8;
  --accent-blue-hover: #0284c7;
  --danger: #ef4444;
  --danger-hover: #dc2626;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --shadow-window: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12);
  --shadow-dock: 0 15px 35px -5px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --shadow-menu: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);

  --font-main: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: var(--font-main);
  background: var(--bg-desktop);
  color: var(--text-primary);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* Área de Escritorio */
#desktop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 54px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 16px;
}

/* Iconos de Escritorio */
.desktop-icon {
  width: 90px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  color: #fff;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.desktop-icon:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.2);
}

.desktop-icon svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.desktop-icon span {
  font-size: 12px;
  font-weight: 500;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
  word-break: break-word;
  max-width: 84px;
}

/* Barra de Tareas / Dock Estilo Windows 11 + UGREEN */
#taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 9999;
  box-shadow: var(--shadow-dock);
}

.taskbar-left, .taskbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.taskbar-center {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  max-width: 60%;
  scrollbar-width: none;
}

.taskbar-center::-webkit-scrollbar {
  display: none;
}

.taskbar-btn {
  height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.taskbar-btn:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.taskbar-btn.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-green);
  box-shadow: inset 0 -2px 0 var(--accent-green);
}

.start-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
  padding: 0 14px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.start-btn:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.badge-tag {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.clock-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  line-height: 1.2;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 6px;
}

.clock-widget .time {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}

/* Sistema de Ventanas Flotantes */
.window {
  position: absolute;
  background: var(--surface-window);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-window);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 340px;
  min-height: 240px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, width 0.15s ease, height 0.15s ease;
}

.window.active-window {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.window.minimized {
  transform: scale(0.3) translateY(400px);
  opacity: 0;
  pointer-events: none;
}

.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 54px) !important;
  border-radius: 0;
  border: none;
}

/* Cabecera de Ventana */
.window-header {
  height: 42px;
  background: var(--surface-header);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  cursor: move;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-title svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.win-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.win-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.win-btn.close:hover {
  background: var(--danger);
  color: white;
}

.window-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
  background: rgba(15, 23, 42, 0.5);
}

/* Resizers */
.resizer {
  position: absolute;
  z-index: 10;
}
.resizer-r { right: 0; top: 0; bottom: 0; width: 6px; cursor: e-resize; }
.resizer-b { bottom: 0; left: 0; right: 0; height: 6px; cursor: s-resize; }
.resizer-rb { bottom: 0; right: 0; width: 14px; height: 14px; cursor: se-resize; }

/* ------------------------------------------------------------- */
/* EXPLORADOR DE ARCHIVOS (ESTILO UGREEN FILES)                   */
/* ------------------------------------------------------------- */
.explorer-container {
  display: flex;
  flex: 1;
  height: 100%;
  width: 100%;
}

.explorer-sidebar {
  width: 220px;
  background: rgba(15, 23, 42, 0.7);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  gap: 4px;
}

.sidebar-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 6px 12px;
  font-weight: 700;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-item:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.sidebar-item.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  font-weight: 600;
}

.explorer-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.explorer-toolbar {
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.action-btn.primary {
  background: var(--accent-green);
  color: #020617;
  font-weight: 600;
  border: none;
}

.action-btn.primary:hover {
  background: var(--accent-green-hover);
}

.breadcrumbs-bar {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid var(--border-subtle);
  gap: 6px;
  overflow-x: auto;
  font-size: 13px;
}

.crumb-item {
  color: var(--accent-blue);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.crumb-item:hover {
  background: rgba(56, 189, 248, 0.15);
}

.crumb-sep {
  color: var(--text-muted);
}

/* Grid & List View */
.file-view-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 14px;
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  position: relative;
}

.file-item:hover {
  background: var(--surface-hover);
  border-color: var(--border-subtle);
}

.file-item.selected {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-green);
}

.file-item svg {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
}

.file-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* File Table View */
.file-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.file-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.file-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.file-table tr:hover td {
  background: var(--surface-hover);
  color: var(--text-primary);
  cursor: pointer;
}

/* Footer de Estado */
.explorer-statusbar {
  height: 28px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid var(--border-subtle);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- */
/* EDITOR DE TEXTO / CÓDIGO                                      */
/* ------------------------------------------------------------- */
.editor-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  width: 100%;
  background: #090d16;
}

.editor-toolbar {
  height: 38px;
  padding: 0 12px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-textarea {
  flex: 1;
  background: #090d16;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  padding: 16px;
  border: none;
  outline: none;
  resize: none;
  white-space: pre;
  overflow: auto;
}

/* ------------------------------------------------------------- */
/* MONITOR DE ALMACENAMIENTO (ESTILO UGREEN)                    */
/* ------------------------------------------------------------- */
.storage-container {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.storage-hero-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.gauge-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  text-align: center;
}

.gauge-center-text .percent {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-green);
}

.gauge-center-text .label {
  font-size: 12px;
  color: var(--text-muted);
}

.disk-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
}

.detail-row .val {
  font-weight: 600;
  color: var(--text-primary);
}

/* Modal y Diálogos */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.modal-box {
  background: var(--surface-window);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  width: 90%;
  max-width: 420px;
  box-shadow: var(--shadow-window);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  color: white;
  font-size: 14px;
  outline: none;
}

.modal-input:focus {
  border-color: var(--accent-green);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100000;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border-left: 4px solid var(--accent-green);
  border-radius: 8px;
  padding: 12px 18px;
  color: white;
  font-size: 13px;
  box-shadow: var(--shadow-menu);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.error {
  border-left-color: var(--danger);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Menú Contextual */
#context-menu {
  position: fixed;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  box-shadow: var(--shadow-menu);
  padding: 6px;
  display: none;
  flex-direction: column;
  min-width: 170px;
  z-index: 100000;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.12s ease;
}

.menu-item:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

/* RESPONSIVIDAD PARA CELULAR (SAMSUNG GALAXY S23 ULTRA / PANTALLAS TÁCTILES) */
@media (max-width: 768px) {
  #desktop {
    padding: 12px;
    gap: 12px;
  }
  
  .desktop-icon {
    width: 76px;
    height: 84px;
  }

  .desktop-icon svg {
    width: 36px;
    height: 36px;
  }

  .window {
    min-width: 100vw !important;
    min-height: calc(100vh - 54px) !important;
    top: 0 !important;
    left: 0 !important;
    border-radius: 0 !important;
  }

  .explorer-sidebar {
    display: none; /* En móvil se oculta barra lateral para dar 100% espacio a los archivos */
  }

  .file-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 10px;
  }

  .taskbar-center {
    max-width: 50%;
  }

  .taskbar-btn span {
    display: none; /* En móvil solo mostramos el icono */
  }

  .action-btn span {
    display: none;
  }
}

/* ------------------------------------------------------------- */
/* PROYECTOS & RELEASES MANAGER (v2.0.0)                         */
/* ------------------------------------------------------------- */
.project-card {
  will-change: transform, box-shadow;
}

.project-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(56, 189, 248, 0.15) !important;
}

.template-card:hover {
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
}

/* ------------------------------------------------------------- */
/* PLAYSTORE PERSONAL & RELEASES HUB (v2.2.0)                    */
/* ------------------------------------------------------------- */
.store-filter-pill {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.store-filter-pill.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.25));
  border-color: rgba(168, 85, 247, 0.6);
  color: #fff;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.25);
}

.store-card {
  will-change: transform, box-shadow;
}

.store-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(168, 85, 247, 0.45) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(168, 85, 247, 0.2) !important;
}

/* ------------------------------------------------------------- */
/* UBUNTU DESKTOP LOCK & LOGIN SCREEN (v2.6.0)                   */
/* ------------------------------------------------------------- */
#ubuntu-lockscreen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 32px 24px;
  background: radial-gradient(circle at 50% 35%, rgba(45, 20, 50, 0.95) 0%, rgba(15, 23, 42, 0.98) 60%, #020617 100%);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

#ubuntu-lockscreen.unlocked {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

.lock-top-bar {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.lock-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lock-server-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #38bdf8;
  font-size: 12px;
}

.lock-server-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.lock-top-center {
  font-size: 16px;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.lock-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: auto 0;
  animation: lockFloat 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes lockFloat {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lock-avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #e95420 0%, #77216f 50%, #38bdf8 100%);
  box-shadow: 0 10px 30px rgba(233, 84, 32, 0.35), 0 0 40px rgba(119, 33, 111, 0.25);
}

.lock-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
}

.lock-user-info {
  text-align: center;
}

.lock-username {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.lock-role {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.lock-input-group {
  position: relative;
  width: 100%;
}

.lock-input {
  width: 100%;
  height: 48px;
  padding: 0 88px 0 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  color: #ffffff;
  font-size: 15px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lock-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #e95420;
  box-shadow: 0 0 0 3px rgba(233, 84, 32, 0.25), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.lock-input::placeholder {
  color: #64748b;
  font-size: 14px;
}

.lock-input-actions {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
}

.lock-btn-eye, .lock-btn-submit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lock-btn-eye:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
}

.lock-btn-submit {
  background: linear-gradient(135deg, #e95420, #ea580c);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(233, 84, 32, 0.4);
}

.lock-btn-submit:hover {
  transform: scale(1.06);
  background: linear-gradient(135deg, #f97316, #e95420);
  box-shadow: 0 4px 14px rgba(233, 84, 32, 0.6);
}

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

.lock-alert {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  display: none;
}

.lock-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  animation: lockShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.lock-alert.caps {
  display: block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

@keyframes lockShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.lock-footer {
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

