* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --white: #ffffff;
    --brown: #4f4844;
    --acid: #ebff00;
}

body {
    font-family: "Titillium Web", sans-serif;
    height: 100vh;
    overflow: hidden;
}

.split {
    display: flex;
    height: 100vh;
}

.split__brand {
    flex: 1;
    background: var(--brown);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.split__logo {
    width: 200px;
    height: auto;
    z-index: 2;
}

.split__accent {
    position: absolute;
    width: 4px;
    height: 140%;
    background: var(--acid);
    transform: rotate(18deg);
    right: 15%;
    top: -20%;
}

.split__form {
    flex: 1;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form {
    width: 100%;
    max-width: 340px;
    padding: 2rem;
}

.login-form h1 {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--brown);
    margin-bottom: 0.5rem;
}

.login-form__hint {
    font-weight: 300;
    color: #8a8480;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.login-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--brown);
    margin-bottom: 0.35rem;
    margin-top: 1.2rem;
}

.login-form input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 2px solid #e5e2df;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.15s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--acid);
}

.login-form button {
    width: 100%;
    margin-top: 2rem;
    padding: 0.75rem;
    background: var(--acid);
    color: var(--brown);
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.login-form button:hover {
    filter: brightness(0.95);
}

.error-message {
    margin-top: 1rem;
    color: #c0392b;
    font-size: 0.85rem;
}

@media (max-width: 720px) {
    .split { flex-direction: column; }
    .split__brand { flex: 0 0 30%; }
    .split__logo { width: 140px; }
}

.app-body { background: #f4f5f7; height: auto; overflow: auto; }

.app-header {
    background: var(--brown);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header__logo { height: 32px; }

.app-header__user {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.app-header__user button {
    background: var(--acid);
    color: var(--brown);
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.app-content { padding: 2rem; max-width: 1000px; margin: 0 auto; }

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-toolbar button, #nc-save {
    background: var(--acid);
    color: var(--brown);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.client-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.client-table th, .client-table td {
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
}

.client-table th { background: #f4f5f7; font-size: 0.85rem; color: var(--brown); }

.badge-pending {
    background: #fff3cd;
    color: #856404;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.btn-small {
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    border: 1px solid var(--brown);
    background: var(--white);
    color: var(--brown);
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 0.4rem;
}

.btn-danger { border-color: #c0392b; color: #c0392b; }

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__box {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 360px;
}

.modal__box label { display: block; margin-top: 1rem; font-weight: 600; font-size: 0.85rem; color: var(--brown); }
.modal__box input { width: 100%; padding: 0.6rem; border: 2px solid #e5e2df; border-radius: 6px; margin-top: 0.3rem; font-family: inherit; }

.modal__actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.btn-secondary { background: #eee; color: var(--brown); border: none; padding: 0.6rem 1.2rem; border-radius: 6px; cursor: pointer; }