.toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 14px;
      }

.page-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
      }

.screen-login {
        min-height: 100vh;
        display: grid;
        place-items: center;
        padding: var(--pad-6);
      }

.login-card {
        width: min(560px, 92vw);
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 22px;
        box-shadow: var(--shadow);
        padding: 34px 34px 28px;
      }

.login-icon {
        margin: 0 auto 22px;
        display: grid;
        place-items: center;
        width: auto;
        height: auto;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
      }

.login-logo-img {
        width: min(320px, 70vw);
        height: auto;
        max-height: 110px;
        object-fit: contain;
      }

.login-title {
        text-align: center;
        margin: 0;
        font-size: 34px;
        letter-spacing: 0.2px;
        font-weight: 900;
      }

.login-subtitle {
        text-align: center;
        margin: 10px 0 26px;
        color: var(--muted);
        font-size: 18px;
        line-height: 1.35;
      }

.login-form {
        display: flex;
        flex-direction: column;
        gap: 18px;
      }

.login-field .label {
        font-size: 16px;
        color: var(--text);
        font-weight: 750;
        margin: 0 0 10px;
      }

.login-field .input {
        padding: 16px 16px;
        border-radius: 14px;
        background: var(--surface-2);
        border-color: transparent;
      }

.login-field .input:focus {
        background: var(--surface);
        border-color: rgba(47, 86, 179, 0.55);
      }

.btn-login {
        width: 100%;
        justify-content: center;
        padding: 16px 18px;
        border-radius: 14px;
        font-size: 16px;
        font-weight: 900;
      }

.login-link {
        display: block;
        text-align: center;
        margin-top: 18px;
        font-weight: 400;
        color: var(--brand-500);
      }

.login-link:hover {
        text-decoration: underline;
      }

.login-error {
        display: none;
        padding: 12px 14px;
        border-radius: 14px;
        border: 1px solid rgba(216, 58, 58, 0.25);
        background: rgba(216, 58, 58, 0.1);
        color: var(--bad);
        font-weight: 400;
        font-size: 13px;
      }

.btn[disabled] {
        opacity: 0.82;
        cursor: not-allowed;
      }

.btn-loading {
        position: relative;
      }

.btn-loading::after {
        content: "";
        width: 18px;
        height: 20px;
        border-radius: 999px;
        border: 2px solid rgba(255, 255, 255, 0.55);
        border-top-color: rgba(255, 255, 255, 1);
        display: inline-block;
        margin-left: 10px;
        animation: spin 0.7s linear infinite;
      }

@keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }

@media (max-width: 980px) {
        .app,
        .app.sidebar-collapsed {
          grid-template-columns: 1fr;
        }
        .sidebar {
          position: relative;
          height: auto;
          border-right: none;
        }
        .sidebar-toggle {
          display: none;
        }
        .app.sidebar-collapsed .sidebar {
          padding: 22px 18px;
        }
        .app.sidebar-collapsed .brand {
          justify-content: flex-start;
          padding: 10px 10px 18px;
          gap: 12px;
        }
        .app.sidebar-collapsed .brand-copy,
        .app.sidebar-collapsed .nav-label {
          opacity: 1;
          width: auto;
          overflow: visible;
          pointer-events: auto;
        }
        .app.sidebar-collapsed .nav a {
          justify-content: flex-start;
          gap: 12px;
          padding: 12px 12px;
        }
        .app.sidebar-collapsed .nav a::before,
        .app.sidebar-collapsed .nav a::after {
          display: none;
        }
        .topbar {
          padding: 0 var(--pad-4);
        }
        .content {
          padding: var(--pad-4);
        }
        .filters {
          grid-template-columns: 1fr;
        }
        .obras-multi-filter-menu {
          position: static;
          width: 100%;
          margin-top: 8px;
          box-shadow: none;
        }
        .login-card {
          grid-template-columns: 1fr;
        }
        .login-left {
          border-right: none;
          border-bottom: 1px solid var(--border);
        }
        .grid-5 {
          grid-template-columns: 1fr 1fr;
        }
        .grid-4 {
          grid-template-columns: 1fr 1fr;
        }
        .grid-3 {
          grid-template-columns: 1fr;
        }
        .grid-2 {
          grid-template-columns: 1fr;
        }
        .obra-detail-panel {
          height: auto;
        }
        .obra-history-scroll {
          max-height: 420px;
        }
      }

.screen-login {
        background: #f3f5f9;
      }

html[data-theme="dark"] .screen-login {
        background: #212121;
      }
