.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 420px; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px #00000014; }
.login-brand { padding: 30px; text-align: center; border-bottom: 5px solid #a7c400; }
.login-brand img { max-width: 180px; max-height: 80px; }
.login-body { padding: 28px 32px; }
.login-body h1 { font-size: 1.4rem; color: #2c3e50; text-align: center; }
.login-intro, .login-hint { color: #555; text-align: center; font-size: .9rem; margin: 12px 0 20px; }
.login-hint { margin: 24px 0 0; }
.login-hint a { color: #526000; overflow-wrap: anywhere; }
.login-body label { display: block; font-weight: 600; margin-bottom: 6px; }
.login-body input:not([type=hidden]) { width: 100%; padding: 12px; margin-bottom: 18px; border: 1px solid #aaa; border-radius: 5px; font: inherit; }
.login-body button, .session-bar button { background: #647600; color: white; border: 0; border-radius: 5px; padding: 12px 20px; font: inherit; cursor: pointer; }
.login-body button { width: 100%; font-weight: 600; }
.login-body button:hover, .session-bar button:hover { background: #4e5c00; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #526000; outline-offset: 3px; }
.flash { padding: 12px; background: #fff2e5; color: #703b00; border-radius: 5px; margin-bottom: 16px; }
.session-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.session-bar span { overflow-wrap: anywhere; }
@media (max-width: 768px) { .session-bar { margin-top: 16px; } .login-body { padding: 24px; } }
.microsoft-button { display: flex; justify-content: center; align-items: center; gap: 12px; border: 1px solid #8b969d; border-radius: 5px; padding: 12px; color: #26323a; text-decoration: none; font-weight: 600; }
.microsoft-button:hover { background: #f5f7f8; }
.microsoft-mark { display: grid; grid-template-columns: 9px 9px; gap: 2px; }
.microsoft-mark i { width: 9px; height: 9px; background: #f25022; }
.microsoft-mark i:nth-child(2) { background: #7fba00; }
.microsoft-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-mark i:nth-child(4) { background: #ffb900; }
.login-divider { text-align: center; color: #66717a; font-size: .85rem; margin: 18px 0; }
.admin-link { font-size: .85rem; color: #4e5c00; text-decoration: none; padding: 7px 10px; border: 1px solid #dce2c6; border-radius: 5px; }
.admin-link:hover { background: #f0f4e3; }
.access-page { padding-top: 32px; padding-bottom: 40px; }
.access-page h1 { font-size: 1.8rem; color: #2c3e50; }
.access-page h2 { font-size: 1.2rem; margin-bottom: 16px; }
.access-page .flash { margin-top: 20px; }
.access-create { background: #fff; border: 1px solid #dce1e4; border-radius: 8px; padding: 22px; margin: 24px 0; }
.access-create summary { cursor: pointer; font-weight: 600; color: #4e5c00; }
.access-create p { margin-top: 14px; }
.create-user-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 16px; margin-top: 20px; }
.access-page input:not([type=checkbox]), .access-page select { display: block; padding: 10px; border: 1px solid #929ca3; border-radius: 5px; font: inherit; width: 100%; }
.access-page button { padding: 11px 18px; background: #647600; color: white; border: 0; border-radius: 5px; font: inherit; cursor: pointer; }
.access-page button:hover { background: #4e5c00; }
.access-page a { color: #4e5c00; }
.access-note { font-size: .85rem; color: #56616a; }
.access-count { color: #56616a; font-weight: 400; }
.users-list { display: grid; gap: 12px; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; background: white; border: 1px solid #dce1e4; border-radius: 8px; }
.user-identity { min-width: 0; overflow-wrap: anywhere; }
.user-identity h3 { font-size: 1rem; }
.user-identity small { font-weight: 400; color: #56616a; }
.user-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.user-actions select { width: auto; }
.checkbox-label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.checkbox-label input { width: 18px; height: 18px; }
.pagination { display: flex; gap: 20px; justify-content: center; margin: 24px 0; }
.admin-tabs { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.admin-tabs a { padding: 8px 14px; border: 1px solid #ccd4bb; border-radius: 5px; text-decoration: none; }
.admin-tabs a[aria-current=page] { background: #647600; color: white; }
.audit-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.audit-filters label { flex: 1 1 170px; }
.audit-table-wrap { overflow-x: auto; margin-top: 12px; background: white; border: 1px solid #dce1e4; border-radius: 8px; }
.audit-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: .9rem; }
.audit-table th, .audit-table td { padding: 14px; border-bottom: 1px solid #e1e5e8; text-align: left; vertical-align: top; overflow-wrap: anywhere; max-width: 300px; }
.audit-table th { background: #edf1e3; }
.audit-table small { display: block; color: #56616a; margin-top: 4px; }
.audit-table .network-externa { color: #9b3900; font-weight: 600; }
.audit-table .network-corporativa { color: #426100; font-weight: 600; }
@media (max-width: 960px) { .user-row { align-items: stretch; flex-direction: column; } .create-user-form { grid-template-columns: 1fr 1fr; } .user-actions { flex-wrap: wrap; } }
@media (max-width: 560px) { .create-user-form { grid-template-columns: 1fr; } .user-row { padding: 18px; } .access-create { padding: 18px; } }
