:root {
    --afialo-font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body, button, input, select, textarea {
    font-family: var(--afialo-font-family);
}

            box-sizing: border-box;
        }

        :root {
            --primary: #d89b3d;
            --primary-soft: rgba(216, 155, 61, 0.14);
            --bg: #070707;
            --card: #171717;
            --text: #ffffff;
            --muted: #a7a7a7;
            --border: rgba(255,255,255,0.09);
            --red: #fca5a5;
            --shadow: 0 24px 70px rgba(0,0,0,0.42);
        }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            color: var(--text);
            background:
                radial-gradient(circle at top left, rgba(216, 155, 61, 0.18), transparent 34%),
                linear-gradient(135deg, #050505, #111111 54%, #070707);
            display: grid;
            place-items: center;
            padding: 24px;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .login-page {
            width: min(980px, 100%);
            margin: 0 auto;
        }

        .login-shell {
            width: 100%;
            display: grid;
            grid-template-columns: 1.15fr 0.9fr;
            gap: 20px;
            align-items: stretch;
        }

        .brand-card,
        .login-card {
            background: rgba(255,255,255,0.045);
            border: 1px solid var(--border);
            border-radius: 30px;
            padding: 28px;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
        }

        .brand-card::after {
            content: "";
            position: absolute;
            width: 210px;
            height: 210px;
            border-radius: 50%;
            background: rgba(216, 155, 61, 0.16);
            right: -70px;
            top: -70px;
        }

        .brand-logo {
            width: 58px;
            height: 58px;
            border-radius: 20px;
            background: linear-gradient(145deg, var(--primary), #8f5d1c);
            color: #111;
            display: grid;
            place-items: center;
            font-weight: 900;
            font-size: 1.35rem;
            margin-bottom: 22px;
            position: relative;
            z-index: 2;
        }

        .eyebrow {
            display: block;
            color: var(--primary);
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            font-weight: 900;
            position: relative;
            z-index: 2;
        }

        h1 {
            margin: 10px 0 0;
            font-size: clamp(2.7rem, 6vw, 4.7rem);
            line-height: 0.92;
            letter-spacing: -0.08em;
            position: relative;
            z-index: 2;
        }

        .brand-card p,
        .login-card p {
            color: var(--muted);
            line-height: 1.55;
            margin: 18px 0 0;
            position: relative;
            z-index: 2;
        }

        .features {
            display: grid;
            gap: 12px;
            margin-top: 28px;
            position: relative;
            z-index: 2;
        }

        .feature {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--muted);
            font-weight: 900;
        }

        .feature span {
            width: 24px;
            height: 24px;
            border-radius: 10px;
            background: var(--primary-soft);
            color: var(--primary);
            display: grid;
            place-items: center;
            font-size: 0.76rem;
        }

        .login-card h2 {
            margin: 0;
            font-size: 1.8rem;
            letter-spacing: -0.06em;
        }

        .form {
            display: grid;
            gap: 14px;
            margin-top: 22px;
        }

        label {
            display: grid;
            gap: 8px;
            color: var(--muted);
            font-weight: 900;
            font-size: 0.84rem;
        }

        input {
            width: 100%;
            border: 1px solid var(--border);
            background: #101010;
            color: var(--text);
            border-radius: 15px;
            padding: 14px;
            outline: none;
            font-size: 0.95rem;
        }

        input:focus {
            border-color: rgba(216, 155, 61, 0.5);
        }

        button {
            border: 0;
            cursor: pointer;
            border-radius: 17px;
            padding: 15px 18px;
            background: linear-gradient(135deg, var(--primary), #9c681f);
            color: #111;
            font-weight: 900;
            font-size: 0.95rem;
            margin-top: 2px;
        }

        .error-box {
            margin-top: 16px;
            padding: 14px;
            border-radius: 18px;
            background: rgba(252, 165, 165, 0.08);
            border: 1px solid rgba(252, 165, 165, 0.24);
            color: var(--red);
            line-height: 1.45;
            font-size: 0.92rem;
            font-weight: 800;
        }

        .info-box {
            margin-top: 16px;
            padding: 14px;
            border-radius: 18px;
            background: rgba(216, 155, 61, 0.08);
            border: 1px solid rgba(216, 155, 61, 0.22);
            color: var(--muted);
            line-height: 1.45;
            font-size: 0.9rem;
            font-weight: 700;
        }

        .info-box strong {
            color: var(--primary);
        }

        .developer-credit {
            text-align: center;
            font-size: 0.72rem;
            color: var(--muted);
            opacity: 0.62;
            margin: 22px 0 0;
            font-weight: 700;
        }

        @media (max-width: 860px) {
            body {
                padding: 14px;
            }

            .login-page {
                width: 100%;
            }

            .login-shell {
                grid-template-columns: 1fr;
            }

            .brand-card,
            .login-card {
                border-radius: 24px;
                padding: 22px;
            }

            h1 {
                font-size: clamp(2.4rem, 13vw, 4rem);
            }
        }
        * {
            box-sizing: border-box;
        }

        :root {
            --primary: #d89b3d;
            --primary-soft: rgba(216, 155, 61, 0.14);
            --bg: #070707;
            --card: #171717;
            --card-2: #101010;
            --text: #ffffff;
            --muted: #a7a7a7;
            --border: rgba(255,255,255,0.09);
            --green: #86efac;
            --red: #fca5a5;
            --shadow: 0 24px 70px rgba(0,0,0,0.42);
        }

        body {
            margin: 0;
            min-height: 100vh;
            font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            color: var(--text);
            background:
                radial-gradient(circle at top left, rgba(216, 155, 61, 0.18), transparent 34%),
                linear-gradient(135deg, #050505, #111111 54%, #070707);
            display: grid;
            place-items: center;
            padding: 24px;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        button {
            font-family: inherit;
        }

        .page {
            width: min(1060px, 100%);
            margin: 0 auto;
        }

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

        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .brand-logo {
            width: 54px;
            height: 54px;
            border-radius: 18px;
            background: linear-gradient(145deg, var(--primary), #8f5d1c);
            color: #111;
            display: grid;
            place-items: center;
            font-weight: 900;
            font-size: 1.25rem;
        }

        .brand span {
            display: block;
            color: var(--primary);
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            font-weight: 900;
        }

        .brand strong {
            display: block;
            margin-top: 4px;
            font-size: 1rem;
        }

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

        .button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 17px;
            padding: 13px 16px;
            font-size: 0.9rem;
            font-weight: 900;
            border: 1px solid rgba(216, 155, 61, 0.28);
            background: rgba(216, 155, 61, 0.12);
            color: var(--primary);
            white-space: nowrap;
            cursor: pointer;
        }

        .button.master {
            background: rgba(134, 239, 172, 0.08);
            color: var(--green);
            border-color: rgba(134, 239, 172, 0.22);
        }

        .button.logout {
            background: rgba(252, 165, 165, 0.08);
            color: var(--red);
            border-color: rgba(252, 165, 165, 0.22);
        }

        .hero {
            background: rgba(255,255,255,0.045);
            border: 1px solid var(--border);
            border-radius: 30px;
            padding: 32px;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
            margin-bottom: 18px;
        }

        .hero::after {
            content: "";
            position: absolute;
            width: 210px;
            height: 210px;
            border-radius: 50%;
            background: rgba(216, 155, 61, 0.16);
            right: -70px;
            top: -70px;
        }

        .eyebrow {
            display: block;
            color: var(--primary);
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            font-weight: 900;
            position: relative;
            z-index: 2;
        }

        h1 {
            margin: 10px 0 0;
            font-size: clamp(2.5rem, 6vw, 4.4rem);
            line-height: 0.92;
            letter-spacing: -0.08em;
            position: relative;
            z-index: 2;
        }

        .hero p {
            color: var(--muted);
            line-height: 1.55;
            margin: 18px 0 0;
            max-width: 700px;
            position: relative;
            z-index: 2;
        }

        .system-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 18px;
            padding: 8px 10px;
            border-radius: 999px;
            background: var(--primary-soft);
            border: 1px solid rgba(216, 155, 61, 0.22);
            color: var(--primary);
            font-weight: 900;
            font-size: 0.82rem;
            position: relative;
            z-index: 2;
        }

        .error-box {
            margin-bottom: 16px;
            padding: 14px;
            border-radius: 18px;
            background: rgba(252, 165, 165, 0.08);
            border: 1px solid rgba(252, 165, 165, 0.24);
            color: var(--red);
            line-height: 1.45;
            font-size: 0.92rem;
            font-weight: 800;
        }

        .companies-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }

        .company-card {
            background: rgba(255,255,255,0.045);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 16px;
            box-shadow: 0 18px 45px rgba(0,0,0,0.22);
        }

        .company-top {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: flex-start;
            margin-bottom: 14px;
        }

        .company-main {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }

        .company-logo {
            min-width: 54px;
            width: 54px;
            height: 54px;
            border-radius: 18px;
            background: linear-gradient(145deg, var(--primary), #8f5d1c);
            color: #111;
            display: grid;
            place-items: center;
            font-weight: 900;
            font-size: 1.15rem;
            border: 1px solid rgba(255,255,255,0.12);
        }

        .company-main h2 {
            margin: 0;
            font-size: 1.05rem;
            letter-spacing: -0.03em;
        }

        .company-main p {
            margin: 6px 0 0;
            color: var(--muted);
            line-height: 1.4;
            font-size: 0.9rem;
            word-break: break-word;
        }

        .profile-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 10px;
            border-radius: 999px;
            color: var(--primary);
            background: var(--primary-soft);
            border: 1px solid rgba(216, 155, 61, 0.22);
            font-size: 0.78rem;
            font-weight: 900;
            white-space: nowrap;
        }

        .access-button {
            width: 100%;
            border: 0;
            cursor: pointer;
            border-radius: 17px;
            padding: 15px 18px;
            background: linear-gradient(135deg, var(--primary), #9c681f);
            color: #111;
            font-weight: 900;
            font-size: 0.95rem;
        }

        .empty-state {
            background: rgba(255,255,255,0.045);
            border: 1px dashed rgba(255,255,255,0.16);
            border-radius: 24px;
            padding: 24px;
            text-align: center;
        }

        .empty-state strong {
            display: block;
            font-size: 1.05rem;
        }

        .empty-state p {
            color: var(--muted);
            margin: 8px 0 0;
            line-height: 1.5;
        }

        .developer-credit {
            text-align: center;
            font-size: 0.72rem;
            color: var(--muted);
            opacity: 0.62;
            margin: 28px 0 0;
            font-weight: 700;
        }

        @media (max-width: 820px) {
            body {
                padding: 14px;
            }

            .topbar {
                display: grid;
            }

            .top-actions {
                display: grid;
                grid-template-columns: 1fr;
                justify-content: stretch;
            }

            .button {
                width: 100%;
            }

            .hero {
                border-radius: 24px;
                padding: 22px;
            }

            .companies-grid {
                grid-template-columns: 1fr;
            }

            .company-top {
                display: grid;
            }
        }

/* AFIALO: BUTTON TYPOGRAPHY */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.btn-primary,
.btn-secondary,
[class^="btn-"],
[class*=" btn-"],
.header-button,
.topbar-button,
.status-action,
.sidebar-footer-actions a,
a[role="button"] {
    font-weight: 600 !important;
}
