/* ACB Access Control v2 */

.acb-wrap {
    max-width: 520px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Tabs */
.acb-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.75rem;
}
.acb-tab {
    flex: 1;
    padding: .75rem 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: .975rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.acb-tab:hover { color: #111; }
.acb-tab.active {
    color: #1a1a2e;
    border-bottom-color: #1a1a2e;
}

/* Form */
.acb-form { display: flex; flex-direction: column; gap: .9rem; }

.acb-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
}

@media (max-width: 500px) {
    .acb-row { grid-template-columns: 1fr; }
}

.acb-field { display: flex; flex-direction: column; gap: .35rem; }

.acb-field label {
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.acb-field label small { font-weight: 400; text-transform: none; color: #9ca3af; }
.acb-req { color: #dc2626; }

.acb-field input,
.acb-field select {
    padding: .65rem .85rem;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: .95rem;
    color: #111;
    background: #f9fafb;
    transition: border-color .2s, box-shadow .2s, background .2s;
    width: 100%;
    box-sizing: border-box;
}
.acb-field input:focus,
.acb-field select:focus {
    outline: none;
    border-color: #1a1a2e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,26,46,.1);
}

.acb-btn {
    margin-top: .4rem;
    padding: .8rem 1.5rem;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    width: 100%;
}
.acb-btn:hover { background: #2d3a8c; }
.acb-btn:active { transform: scale(.98); }

.acb-intro {
    font-size: .875rem;
    color: #6b7280;
    margin: 0 0 .5rem;
    line-height: 1.6;
}

/* Logged-in bar */
.acb-logged {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 8px;
}
.acb-avatar {
    width: 42px; height: 42px;
    background: #1a1a2e;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700;
    flex-shrink: 0;
}
.acb-welcome { margin: 0; font-size: .95rem; color: #111; }
.acb-role { margin: 2px 0 0; font-size: .8rem; color: #6b7280; }
.acb-logout {
    margin-left: auto;
    font-size: .8rem;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
}
.acb-logout:hover { color: #dc2626; }

/* Notices */
.acb-notice {
    padding: .85rem 1rem;
    border-radius: 6px;
    font-size: .9rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}
.acb-notice a { color: inherit; font-weight: 600; }
.acb-error  { background: #fef2f2; border-left: 4px solid #dc2626; color: #7f1d1d; }
.acb-success { background: #f0fdf4; border-left: 4px solid #16a34a; color: #14532d; }
.acb-warn   { background: #fffbeb; border-left: 4px solid #d97706; color: #78350f; }
