/* ==========================================================================
   USER MANAGEMENT (LOGIN) - ENTERPRISE STYLES
   ========================================================================== */

/* The root variables are now inherited from modern-global.css.
   We just style the specific layout of the login screen here. */

body {
    background-color: var(--slate-50);
}

#app {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: var(--space-4);
}

/* --------------------------------------------------------------------------
   Card Panel
   -------------------------------------------------------------------------- */
.card-panel {
    background: var(--surface);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6) var(--space-5);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-1);
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 15px;
    font-weight: 500;
    color: var(--slate-500);
}

/* --------------------------------------------------------------------------
   Search Field
   -------------------------------------------------------------------------- */
.search-container {
    margin-bottom: var(--space-3);
    position: relative;
    width: 100%;
}

.search-field {
    width: 100%;
    padding: 10px 35px 10px 14px;
    font-size: 14px;
    font-family: var(--font-body);
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--slate-900);
    outline: none;
    transition: all 0.2s ease;
}

.search-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--slate-400);
}

/* --------------------------------------------------------------------------
   User List
   -------------------------------------------------------------------------- */
.user-list-container {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--surface);
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: var(--space-4);
}

.user-list {
    list-style: none;
    padding: var(--space-1);
    margin: 0;
}

.user-item {
    padding: var(--space-2) var(--space-3);
    margin-bottom: 2px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    color: var(--slate-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-item:hover {
    background-color: var(--slate-50);
}

.user-item.selected {
    background-color: var(--primary-light);
    color: var(--primary-hover);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Buttons override (Most handle by modern-components.css)
   -------------------------------------------------------------------------- */
.action-buttons {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.action-buttons .button {
    flex: 1;
}

.main-action {
    display: flex;
    justify-content: center;
    margin-top: var(--space-4);
}

.main-action .button-large {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    color: var(--slate-500);
    font-size: 14px;
}