/* ===== CONTAINER ===== */
.ce-v6-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 480px; /* Optimal width for a login form */
    margin: auto; /* Center the container */
    padding: 2rem 1.5rem;
    background: #ffffff; /* White background */
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* On mobile, make it take the full width and height */
@media (max-width: 540px) {
    .ce-v6-container {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        border: none;
        padding-top: 4rem;
    }
}

.ce-v6-container::before {
    content: none; /* Remove the top border line */
}

/* ===== HEADER (Hide on login) ===== */
.auth-view .ce-v6-header {
    display: none;
}

.ce-v6-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--ce-space-lg);
    padding: var(--ce-space-sm) 0; /* Reduced padding */
    border-bottom: 1px solid var(--ce-glass-border);
}

.ce-v6-title {
    font-weight: 600; /* Slightly lighter font weight */
    font-size: 1.1rem; /* Smaller font size */
    color: var(--ce-text-secondary);
}

/* ===== USER INFO ===== */
.ce-v6-user-profile {
    display: flex;
    align-items: center;
    gap: var(--ce-space-sm);
    background: transparent; /* Remove background */
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    border: none;
}

.ce-v6-user-avatar {
    font-size: 1.5rem;
    width: 36px; /* Smaller avatar */
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ce-gradient-primary);
    border-radius: 50%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.ce-v6-user-details {
    flex: 1;
    min-width: 0;
    text-align: right; /* Align text to the right */
}

.ce-v6-username {
    font-weight: 600;
    color: var(--ce-text-primary);
    font-size: 0.9rem;
}

.ce-v6-user-level {
    font-size: 0.75rem;
    color: var(--ce-text-secondary);
    opacity: 1;
}

.ce-v6-logout-btn {
    background: none;
    border: none;
    color: var(--ce-text-muted);
    cursor: pointer;
    padding: var(--ce-space-sm);
    border-radius: var(--ce-radius-sm);
    transition: var(--ce-transition-fast);
    font-size: 1.2rem; /* Larger icon */
}

.ce-v6-logout-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--ce-secondary);
}
