.card.login-card {
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    text-align: left;
}

.login-label {
    color: var(--text-body, #d6d3d1);
    font-size: .85rem;
    font-weight: 600;
}

.login-input {
    padding: 11px 14px;
    color: var(--text-heading, #fafaf9);
    background: var(--bg-surface, #1a1a1a);
    border: 1px solid rgba(214, 183, 93, .35);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color .18s ease, box-shadow .18s ease;
    font-family: inherit;
}

.login-input:focus-visible {
    outline: none;
    border-color: rgba(var(--brand-primary-rgb, 234, 179, 8), .65);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 234, 179, 8), .18);
}

.login-form .page-actions {
    text-align: center;
}

.social-login-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--text-heading, #fafaf9);
    background: var(--bg-surface, #1a1a1a);
    border: 1px solid rgba(214, 183, 93, .35);
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.social-login-btn:hover {
    border-color: rgba(var(--brand-primary-rgb, 234, 179, 8), .65);
    background: var(--bg-surface-alt, #171717);
    transform: translateY(-1px);
}

.social-login-btn i {
    font-size: 1.1rem;
}

.social-login-btn--google i {
    color: var(--brand-primary, #eab308);
}

.social-login-btn--facebook i {
    color: #8ba4d6;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .35);
}

.profile-header-info .card-title {
    margin-bottom: 2px;
}

.profile-position {
    margin: 0 0 4px;
    color: var(--text-meta-accent, #d6b75d);
    font-size: .85rem;
    font-weight: 600;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.user-tag,
.user-role {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.user-tag {
    color: var(--text-meta-accent, #d6b75d);
    background: var(--bg-surface, #1a1a1a);
    border: 1px solid rgba(214, 183, 93, .48);
}

/* God-mode role (see Role::DEVELOPER) — red rather than the same gold as
   every other role tag, so it reads as distinct at a glance next to the
   green .user-role "Administrador" badge it's often shown alongside. */
.user-tag--developer {
    color: #d68787;
    background: rgba(191, 97, 97, .12);
    border: 1px solid rgba(191, 97, 97, .4);
}

.user-role {
    color: #93b69c;
    background: rgba(111, 167, 125, .12);
    border: 1px solid rgba(111, 167, 125, .35);
}

.linked-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.btn-link--danger {
    background: transparent;
    color: #d39a9a;
    border: 1px solid rgba(190, 100, 100, .45);
}

.btn-link--danger:hover {
    background: rgba(190, 100, 100, .12);
    color: var(--text-heading, #fafaf9);
}

.btn-link--sm {
    padding: 5px 10px;
    margin: 0;
    font-size: .76rem;
}

.card {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 32px;
    background: rgba(var(--bg-surface-alt-rgb, 23, 23, 23), .96);
    border: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .3);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    text-align: left;
}

.card-title {
    margin: 5px 0 5px 0;
    font-size: clamp(2rem, 5vw, 2.75rem);
    letter-spacing: -.04em;
    color: var(--text-heading-accent, #fef3c7);
}

/* Doubled up as `.card.company-intro-card` (instead of plain
   `.company-intro-card`) so its specificity (0,0,2,0) reliably beats
   dashboard.css's own competing `.card` rule (max-width/margin/text-align),
   which is loaded after this file on every page that shows this card and
   would otherwise win ties on shared properties by source order alone. */
.card.company-intro-card {
    max-width: none;
    margin: 0 0 40px;
    padding: 24px 28px;
    overflow: hidden;
    text-align: left;
}

/* Same specificity trick as .card.company-intro-card above — without it,
   dashboard.css's plain `.card` rule (max-width:700px, text-align:center)
   fights .profile-header's row layout (avatar next to left-aligned text),
   leaving the header centered and narrower than intended. */
.card.profile-card {
    max-width: 880px;
    text-align: left;
}

.company-intro-image {
    float: left;
    width: 96px;
    height: 96px;
    margin: 0 20px 8px 0;
    object-fit: contain;
}

.company-intro-card .card-title {
    margin-top: 0;
    text-align: left;
    font-size: clamp(1.2rem, 2.6vw, 1.5rem);
}

.company-intro-card p {
    margin: 0;
    color: var(--text-body, #d6d3d1);
    font-size: .85rem;
    line-height: 1.6;
    text-align: justify;
    white-space: normal;
}

.legal-updated {
    margin: 0 0 24px;
    color: var(--text-muted, #a8a29e);
    font-size: .82rem;
}

.legal-card h2 {
    margin: 32px 0 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .18);
    font-size: 1.1rem;
    letter-spacing: -.01em;
    color: var(--brand-primary, #eab308);
}

.legal-card h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-card p {
    margin: 0 0 12px;
    font-size: .88rem;
    line-height: 1.7;
}

.section-title {
    margin: 48px 0 4px;
    padding-top: 28px;
    border-top: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .18);
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    letter-spacing: -.02em;
    color: var(--text-heading-accent, #fef3c7);
}

.page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .18);
}

.changelog-placeholder {
    margin-top: 24px;
    padding: 24px;
    background: rgba(var(--bg-surface-rgb, 26, 26, 26), .6);
    border: 1px dashed rgba(var(--brand-primary-rgb, 234, 179, 8), .25);
    border-radius: 10px;
}

.release-entry {
    margin-top: 24px;
    padding: 22px 24px;
    background: rgba(var(--overlay-rgb, 255, 255, 255), .02);
    border: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .18);
    border-radius: 14px;
}

.release-entry-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.release-entry-version {
    padding: 3px 10px;
    color: var(--text-heading-accent, #fef3c7);
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: rgba(var(--brand-primary-rgb, 234, 179, 8), .12);
    border: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .3);
    border-radius: 999px;
}

.release-entry-date {
    color: var(--text-faint, #78716c);
    font-size: .8rem;
}

.release-entry-title {
    margin: 12px 0 10px;
    color: var(--text-heading, #fafaf9);
    font-size: 1.05rem;
}

.release-entry-changes {
    margin: 0;
    padding-left: 20px;
    color: var(--text-body, #d6d3d1);
    font-size: .88rem;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: var(--bg-surface, #1a1a1a);
    border: 1px solid rgba(214, 183, 93, .25);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease;
}

.team-card:hover {
    border-color: var(--brand-primary, #eab308);
    transform: translateY(-2px);
}

.team-card-avatar {
    width: 84px;
    height: 84px;
    margin-bottom: 14px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .35);
}

.team-card-name {
    margin: 0;
    color: var(--text-heading-accent, #fef3c7);
    font-size: 1rem;
}

.team-card-title {
    margin: 4px 0 0;
    color: var(--text-meta-accent, #d6b75d);
    font-size: .78rem;
}

.team-card-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 6px 14px;
    color: var(--text-heading-accent, #fef3c7);
    background: rgba(var(--brand-primary-rgb, 234, 179, 8), .12);
    border: 1px solid rgba(var(--brand-primary-rgb, 234, 179, 8), .35);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}

.team-card-profile-btn:hover {
    background: rgba(var(--brand-primary-rgb, 234, 179, 8), .22);
    border-color: var(--brand-primary, #eab308);
}

.avatar-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

/* Same specificity trick as .card.company-intro-card above — the Sede page
   needs the wide, left-aligned layout, not dashboard.css's plain centered
   .card. */
.card.headquarters-card {
    max-width: 960px;
    text-align: left;
}

.headquarters-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    margin-top: 24px;
}

.headquarters-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.headquarters-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.headquarters-detail i {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--brand-primary, #eab308);
    font-size: 1.05rem;
    background: rgba(var(--brand-primary-rgb, 234, 179, 8), .12);
    border-radius: 10px;
}

.headquarters-detail h3 {
    margin: 4px 0;
    color: var(--text-heading-accent, #fef3c7);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.headquarters-detail p {
    margin: 0;
    color: var(--text-body, #d6d3d1);
    font-size: .9rem;
    line-height: 1.6;
}

.headquarters-map {
    overflow: hidden;
    border: 1px solid rgba(214, 183, 93, .25);
    border-radius: 12px;
}

.headquarters-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
}

.online-dot {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 14px;
    height: 14px;
    background: #6b7280;
    border: 2px solid var(--bg-surface, #1a1a1a);
    border-radius: 999px;
}

.online-dot--online {
    background: #22c55e;
}

.navbar-dropdown .online-dot {
    right: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    border-width: 1px;
}

.changelog-placeholder .update-status {
    margin-top: 0;
}

.page-actions .btn-link {
    margin-top: 0;
}
